# HG changeset patch # User Kim Alvefur # Date 1687704325 -7200 # Node ID 10b7118bbd8f15d7d2d6ef78209a3eb129d1cbf8 # Parent ed177fa5b54c66d92718e9bd0f3ea647345cba2c mod_pubsub_feeds: Remove broken attempt to generate an ID from content This seems to never have worked correctly and now the timestamp is out of scope anyway. diff -r ed177fa5b54c -r 10b7118bbd8f mod_pubsub_feeds/mod_pubsub_feeds.lua --- a/mod_pubsub_feeds/mod_pubsub_feeds.lua Sun Jun 25 16:42:57 2023 +0200 +++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua Sun Jun 25 16:45:25 2023 +0200 @@ -109,8 +109,8 @@ module:log("debug", "Feed %q item %s is missing an id, using instead", item.url, entry:top_tag()); id = link and link.attr.href; else - module:log("debug", "Feed %q item %s is missing an id, using a HMAC of the item instead", item.url, entry:top_tag()); - id = item.url .. "#" .. hmac_sha1(item.url, tostring(entry), true) .. "@" .. dt_datetime(timestamp); + module:log("error", "Feed %q item %s is missing both id and link, this feed is unusable", item.url, entry:top_tag()); + return; end entry:text_tag("id", id); end