diff libervia_server/__init__.py @ 380:5e0e2032928c

browser_side: bug fixes microblogs: - currently selected panel is taken in account when the unibox is toggled on - sending message to restricted groups from the editor that is integrated into MicroblogPanel now works
author souliane <souliane@mailoo.org>
date Tue, 25 Feb 2014 12:41:31 +0100
parents f22a4bf9a67e
children b96b8b666d17
line wrap: on
line diff
--- a/libervia_server/__init__.py	Wed Feb 26 01:50:49 2014 +0100
+++ b/libervia_server/__init__.py	Tue Feb 25 12:41:31 2014 +0100
@@ -242,7 +242,8 @@
                 return self.sat_host.bridge.sendGroupBlog("PUBLIC", [], text, extra, profile)
             else:
                 print "sending group blog"
-                return self.sat_host.bridge.sendGroupBlog("GROUP", [dest], text, extra, profile)
+                dest = dest if isinstance(dest, list) else [dest]
+                return self.sat_host.bridge.sendGroupBlog("GROUP", dest, text, extra, profile)
         else:
             raise Exception("Invalid data")