# HG changeset patch # User Goffi # Date 1499973166 -7200 # Node ID 91a14dab924dc73f2c4ed5c0df52f8b71e0e9f9c # Parent 760df3a58c245bb854ae1fa4302c4e9bf092563c tools (common/uri): buildXMPPUri: use XEP-0277 namespace as node if node is empty or None for microblog subtype diff -r 760df3a58c24 -r 91a14dab924d src/tools/common/uri.py --- a/src/tools/common/uri.py Thu Jul 13 20:55:35 2017 +0200 +++ b/src/tools/common/uri.py Thu Jul 13 21:12:46 2017 +0200 @@ -84,7 +84,7 @@ 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'?')