From: Christophe Romain Date: Thu, 29 Sep 2016 14:10:11 +0000 (+0200) Subject: PubSub: creation jid must be bare jid X-Git-Tag: 16.12-beta1~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1de0bb83a0bd42af502e0407f185cd6be0fd4a12;p=ejabberd PubSub: creation jid must be bare jid --- diff --git a/src/node_flat_sql.erl b/src/node_flat_sql.erl index ac590a1dc..bd084333b 100644 --- a/src/node_flat_sql.erl +++ b/src/node_flat_sql.erl @@ -1036,6 +1036,6 @@ raw_to_item(Nidx, {ItemId, SJID, Creation, Modification, XML}) -> El -> [El] end, #pubsub_item{itemid = {ItemId, Nidx}, - creation = {ToTime(Creation), JID}, + creation = {ToTime(Creation), jid:remove_resource(JID)}, modification = {ToTime(Modification), JID}, payload = Payload}.