From da75f5845378c7547c2ceed4f714f64337b9dcc5 Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 13 Jul 2017 21:12:46 +0200 Subject: [PATCH] tools (common/uri): buildXMPPUri: use XEP-0277 namespace as node if node is empty or None for microblog subtype --- src/tools/common/uri.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/common/uri.py b/src/tools/common/uri.py index f1951c44..0dd1abe0 100644 --- a/src/tools/common/uri.py +++ b/src/tools/common/uri.py @@ -84,7 +84,7 @@ def buildXMPPUri(type_, **kwargs): uri.append(urllib.quote_plus(path).replace(u'%40', '@')) if type_ == u'pubsub': - if subtype == 'microblog' and not 'node' in kwargs: + if subtype == 'microblog' and not kwargs.get('node'): kwargs[u'node'] = 'urn:xmpp:microblog:0' if kwargs: uri.append(u'?')