aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2016-09-29 16:10:11 +0200
committerChristophe Romain <christophe.romain@process-one.net>2016-09-29 16:10:11 +0200
commit15ebb791603aa32424111a5e3f95c6bdcdb9055f (patch)
tree9df29cd0a1a282635cb3d40b04e1d4721722dde7 /src
parentPubSub: fix notification on subscription change (diff)
PubSub: creation jid must be bare jid
Diffstat (limited to 'src')
-rw-r--r--src/node_flat_sql.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_flat_sql.erl b/src/node_flat_sql.erl
index e7e5fb417..15cf9b37a 100644
--- a/src/node_flat_sql.erl
+++ b/src/node_flat_sql.erl
@@ -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}.