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.
--- 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 <link> 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