plugin XEP-0277, EXTRA-PEP: get massive blogs from all the roster also retrieve items from a special JIDs list defined in EXTRA-PEP
This commit is contained in:
parent
1f17172b52
commit
192b5a0275
1 changed files with 58 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ PLUGIN_INFO = {
|
|||
"type": "XEP",
|
||||
"protocols": ["XEP-0277"],
|
||||
"dependencies": ["XEP-0163", "XEP-0060", "TEXT-SYNTAXES"],
|
||||
"recommendations": ["XEP-0059"],
|
||||
"recommendations": ["XEP-0059", "EXTRA-PEP"],
|
||||
"main": "XEP_0277",
|
||||
"handler": "no",
|
||||
"description": _("""Implementation of microblogging Protocol""")
|
||||
|
|
@ -647,6 +647,14 @@ class XEP_0277(object):
|
|||
jids_set = set(publishers)
|
||||
else:
|
||||
jids_set = client.roster.getJidsSet(publishers_type, publishers)
|
||||
if publishers_type == C.ALL:
|
||||
try: # display messages from salut-a-toi@libervia.org or other PEP services
|
||||
services = self.host.plugins["EXTRA-PEP"].getConfig("get_items_from_list")
|
||||
except KeyError:
|
||||
pass
|
||||
else:
|
||||
log.debug("Items from the following extra PEP services will be requested as well: %s" % ", ".join(services))
|
||||
jids_set.update([jid.JID(service) for service in services])
|
||||
|
||||
node_data = []
|
||||
for jid_ in jids_set:
|
||||
|
|
|
|||
Loading…
Reference in a new issue