plugin xep 0277: added OPT_DELIVER_PAYLOADS OPT_SEND_ITEM_SUBSCRIBE to microblog options when changing access
This commit is contained in:
parent
9d1bd8062c
commit
5224d71918
1 changed files with 4 additions and 1 deletions
|
|
@ -36,6 +36,8 @@ NS_MICROBLOG = 'urn:xmpp:microblog:0'
|
|||
OPT_ACCESS_MODEL = 'pubsub#access_model'
|
||||
OPT_PERSIST_ITEMS = 'pubsub#persist_items'
|
||||
OPT_MAX_ITEMS = 'pubsub#max_items'
|
||||
OPT_DELIVER_PAYLOADS = 'pubsub#deliver_payloads'
|
||||
OPT_SEND_ITEM_SUBSCRIBE = 'pubsub#send_item_subscribe'
|
||||
|
||||
PLUGIN_INFO = {
|
||||
"name": "Microblogging over XMPP Plugin",
|
||||
|
|
@ -166,7 +168,8 @@ class XEP_0277():
|
|||
if not _jid:
|
||||
error(_("Can't find profile's jid"))
|
||||
return
|
||||
_options = {OPT_ACCESS_MODEL:access, OPT_PERSIST_ITEMS:1, OPT_MAX_ITEMS:-1}
|
||||
_options = {OPT_ACCESS_MODEL:access, OPT_PERSIST_ITEMS:1, OPT_MAX_ITEMS:-1, OPT_DELIVER_PAYLOADS:1, OPT_SEND_ITEM_SUBSCRIBE: 1}
|
||||
|
||||
def cb(result):
|
||||
#Node is created with right permission
|
||||
debug(_("Microblog node has now access %s") % access)
|
||||
|
|
|
|||
Loading…
Reference in a new issue