changeset 64:104e71ce2293

browser side: fixed microblog filtering
author Goffi <goffi@goffi.org>
date Thu, 02 Jun 2011 15:57:57 +0200
parents dc88ff7a030d
children 8f421a12b8f9
files libervia.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia.py	Tue May 31 21:58:05 2011 +0200
+++ b/libervia.py	Thu Jun 02 15:57:57 2011 +0200
@@ -249,7 +249,8 @@
         @param sender: jid of the entry sender
         @param _groups: groups which can receive this entry
         @param mblog_entry: MicroblogEntry instance"""
-        if mblog_panel.isJidAccepted(sender) or _groups == None or _groups.intersection(mblog_panel.accepted_groups):
+        if mblog_panel.isJidAccepted(sender) or (_groups == None and self.whoami and sender == self.whoami.bare) \
+           or (_groups and _groups.intersection(mblog_panel.accepted_groups)):
             mblog_panel.addEntry(mblog_entry)
 
     def FillMicroblogPanel(self, mblog_entry):