diff --git a/src/common/pep.py b/src/common/pep.py index 21d6fe94f..255d0fe3a 100644 --- a/src/common/pep.py +++ b/src/common/pep.py @@ -544,7 +544,7 @@ class ConnectionPEP(object): items = event_tag.getTag('items') if items: for item in items.getTags('item'): - entry = item.getTag('entry') + entry = item.getTag('entry', namespace=xmpp.NS_ATOM) if entry: # for each entry in feed (there shouldn't be more than one, # but to be sure... diff --git a/src/common/xmpp/protocol.py b/src/common/xmpp/protocol.py index 750cd7bf9..a14eb8dca 100644 --- a/src/common/xmpp/protocol.py +++ b/src/common/xmpp/protocol.py @@ -28,6 +28,7 @@ NS_ADDRESS ='http://jabber.org/protocol/address' NS_AGENTS ='jabber:iq:agents' NS_AMP ='http://jabber.org/protocol/amp' NS_AMP_ERRORS =NS_AMP+'#errors' +NS_ATOM ='http://www.w3.org/2005/Atom' NS_AUTH ='jabber:iq:auth' NS_AVATAR ='http://www.xmpp.org/extensions/xep-0084.html#ns-metadata' NS_BIND ='urn:ietf:params:xml:ns:xmpp-bind'