From 1de0bb83a0bd42af502e0407f185cd6be0fd4a12 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Thu, 29 Sep 2016 16:10:11 +0200 Subject: [PATCH] PubSub: creation jid must be bare jid --- src/node_flat_sql.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}.