quick frontend (app): fixed regression in groups handling
This commit is contained in:
parent
cc17c2869f
commit
4518afa0fb
1 changed files with 2 additions and 4 deletions
|
|
@ -23,6 +23,7 @@ log = getLogger(__name__)
|
|||
from sat.core.i18n import _
|
||||
from sat.core import exceptions
|
||||
from sat.tools import trigger
|
||||
from sat.tools.common import data_format
|
||||
|
||||
from sat_frontends.tools import jid
|
||||
from sat_frontends.quick_frontend import quick_widgets
|
||||
|
|
@ -689,10 +690,7 @@ class QuickApp(object):
|
|||
if not 'content' in data:
|
||||
log.warning("No content found in microblog data")
|
||||
return
|
||||
if 'groups' in data:
|
||||
_groups = set(data['groups'].split() if data['groups'] else [])
|
||||
else:
|
||||
_groups = None
|
||||
_groups = set(data_format.dict2iter('group', data)) or None # FIXME: check if [] make sense (instead of None)
|
||||
|
||||
for wid in self.widgets.getWidgets(quick_blog.QuickBlog):
|
||||
wid.addEntryIfAccepted(service_s, node, data, _groups, profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue