# HG changeset patch # User Goffi # Date 1333490837 -7200 # Node ID 4ad621df9e349a14fff0b1fec7b39b76645b6d61 # Parent 30d8e328559b2d4ef37359887f3b2afbf4fc69ad browser side: group blog is now used to send all microblogs diff -r 30d8e328559b -r 4ad621df9e34 libervia.tac --- 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