Mercurial > libervia-web
diff libervia.tac @ 133:4ad621df9e34
browser side: group blog is now used to send all microblogs
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 04 Apr 2012 00:07:17 +0200 |
parents | 30d8e328559b |
children | ceef355156de |
line wrap: on
line diff
--- a/libervia.tac Mon Apr 02 00:25:38 2012 +0200 +++ b/libervia.tac Wed Apr 04 00:07:17 2012 +0200 @@ -196,11 +196,16 @@ if match: recip = match.group(1) text = match.group(2) + #if recip == '@' and text: + # #This text if for the public microblog + # return self.sat_host.bridge.sendPersonalEvent("MICROBLOG", {'content':text}, profile) if recip == '@' and text: #This text if for the public microblog - return self.sat_host.bridge.sendPersonalEvent("MICROBLOG", {'content':text}, profile) + print "sending public blog" + return self.sat_host.bridge.sendGroupBlog("PUBLIC", [], text, profile) else: - return self.sat_host.bridge.sendGroupBlog([recip], text, profile) + print "sending group blog" + return self.sat_host.bridge.sendGroupBlog("GROUP", [recip], text, profile) def jsonrpc_getLastMblogs(self, publisher_jid, max_item): """Get last microblogs posted by a contact