plugin XEP-0277, group blog: added item2data trigger + group permission are parsed when receiving a new item

This commit is contained in:
Goffi 2015-11-25 10:45:22 +01:00
commit 6724b696bc

View file

@ -319,6 +319,10 @@ class XEP_0277(object):
categories = (category_elt.getAttribute('term','') for category_elt in entry_elt.elements(NS_ATOM, 'category'))
common.iter2dict('tag', categories, microblog_data)
## the trigger ##
# if other plugins have things to add or change
yield self.host.trigger.point("XEP-0277_item2data", item_elt, entry_elt, microblog_data)
defer.returnValue(microblog_data)
@defer.inlineCallbacks