Software /
code /
prosody-modules
Changeset
5576:c729a38f21b1
mod_pubsub_feeds: Handle node already existing
Don't need to create it if it exists
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 25 Jun 2023 19:52:24 +0200 |
parents | 5575:372e59bd45d7 |
children | 5577:e7792188540a |
files | mod_pubsub_feeds/mod_pubsub_feeds.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_pubsub_feeds/mod_pubsub_feeds.lua Sun Jun 25 16:48:21 2023 +0200 +++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua Sun Jun 25 19:52:24 2023 +0200 @@ -49,7 +49,7 @@ new_feed_list[node] = true; if not feed_list[node] then local ok, err = pubsub.service:create(node, true); - if ok then + if ok or err == "conflict" then feed_list[node] = { url = url; node = node; last_update = 0 }; else module:log("error", "Could not create node %s: %s", node, err);