aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorJonas Schäfer <jonas@wielicki.name>2022-01-15 15:40:29 +0100
committerJonas Schäfer <jonas@wielicki.name>2022-01-15 15:40:29 +0100
commit91055b49bba7b0be8f2b25b96b0ae9ce2a4337ff (patch)
tree4497f4f91a8b50c89983f97a70a5adb686767f8a /plugins/mod_pubsub
parentbb100ed33ec5dfe46eccc3ac0a89e6d7f9952ac3 (diff)
downloadprosody-91055b49bba7b0be8f2b25b96b0ae9ce2a4337ff.tar.gz
prosody-91055b49bba7b0be8f2b25b96b0ae9ce2a4337ff.zip
mod_storage_xep0227: treat roster metadata pseudo-entry correctly
The roster version is stored in a pseudo-item which has the key `false`. The if condition in the touched code attempts to guard against this, but it does not take into account that the jid prepping returns nil instead of false. By moving the jid prepping into the if, we can check for the metadata entry safely.
Diffstat (limited to 'plugins/mod_pubsub')
0 files changed, 0 insertions, 0 deletions