Mercurial > libervia-backend
diff src/plugins/plugin_xep_0060.py @ 2484:785b6a1cef0a
plugin forums: first draft:
this plugin handle forums hierarchy, where forums link to topics which themselves link to blog nodes.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 30 Jan 2018 08:17:08 +0100 |
parents | 0046283a285d |
children |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0060.py Fri Jan 26 11:14:13 2018 +0100 +++ b/src/plugins/plugin_xep_0060.py Tue Jan 30 08:17:08 2018 +0100 @@ -148,7 +148,10 @@ @param extra(dict): extra data used to configure request @return(Extra): filled Extra instance """ - if extra is not None: + if extra is None: + rsm_request = None + extra = {} + else: # rsm rsm_args = {} for arg in ('max', 'after', 'before', 'index'): @@ -189,9 +192,6 @@ if mam_args: assert 'mam' not in extra extra['mam'] = mam.MAMRequest(mam.buildForm(**mam_args)) - else: - rsm_request = None - extra = {} return Extra(rsm_request, extra) def addManagedNode(self, node, **kwargs):