Mercurial > libervia-web
diff libervia.py @ 64:104e71ce2293
browser side: fixed microblog filtering
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 02 Jun 2011 15:57:57 +0200 |
parents | 12e889a683ce |
children | 9d8e79ac4c9c |
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):