]> 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)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 29 Sep 2016 14:10:11 +0000 (16:10 +0200)
src/node_flat_sql.erl

index e7e5fb417ec314ec810380df96c25391b7db5dd6..15cf9b37a0153f2c396d6e0e729572fc6fd37bc6 100644 (file)
@@ -1051,6 +1051,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}.