]> granicus.if.org Git - ejabberd/commitdiff
PubSub: creation jid must be bare jid
authorChristophe Romain <christophe.romain@process-one.net>
Thu, 29 Sep 2016 14:10:11 +0000 (16:10 +0200)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 30 Sep 2016 04:51:33 +0000 (07:51 +0300)
src/node_flat_sql.erl

index ac590a1dc7b5d09aca93960823057cb1e1011c9f..bd084333b46256595d60bd12a808fec0732fbce4 100644 (file)
@@ -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}.