Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0277.py @ 3179:84a94b385760
bridge: messageSend's extra is now serialised
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 21 Feb 2020 12:17:38 +0100 |
parents | 559a625a236b |
children | 384283adcce1 |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0277.py Tue Feb 18 18:17:18 2020 +0100 +++ b/sat/plugins/plugin_xep_0277.py Fri Feb 21 12:17:38 2020 +0100 @@ -1,6 +1,5 @@ #!/usr/bin/env python3 - # SAT plugin for microblogging over XMPP (xep-0277) # Copyright (C) 2009-2020 Jérôme Poisson (goffi@goffi.org) @@ -21,7 +20,6 @@ from sat.core.constants import Const as C from sat.core.log import getLogger -log = getLogger(__name__) from twisted.words.protocols.jabber import jid, error from twisted.words.protocols.jabber.xmlstream import XMPPHandler from twisted.words.xish import domish @@ -44,6 +42,9 @@ import calendar import urllib.parse +log = getLogger(__name__) + + NS_MICROBLOG = "urn:xmpp:microblog:0" NS_ATOM = "http://www.w3.org/2005/Atom" NS_PUBSUB_EVENT = "{}{}".format(pubsub.NS_PUBSUB, "#event")