From 798f79bfe97223998e845b64491629262e7d0374 Mon Sep 17 00:00:00 2001 From: primal Date: Thu, 29 Jan 2026 13:13:22 -0500 Subject: [PATCH] Auto-deny feeds that are not RSS or Atom type Feeds with type other than 'rss' or 'atom' (e.g., 'unknown') are now automatically denied on discovery. Also updated 164 existing feeds. Co-Authored-By: Claude Opus 4.5 --- feed.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/feed.go b/feed.go index 810643d..d4c2e46 100644 --- a/feed.go +++ b/feed.go @@ -178,11 +178,13 @@ type Feed struct { // saveFeed stores a feed in PostgreSQL func (c *Crawler) saveFeed(feed *Feed) error { // Default publishStatus to "held" if not set - // Auto-deny feeds with no language specified + // Auto-deny feeds with no language or non-RSS/Atom type publishStatus := feed.PublishStatus if publishStatus == "" { if feed.Language == "" { publishStatus = "deny" + } else if feed.Type != "rss" && feed.Type != "atom" { + publishStatus = "deny" } else { publishStatus = "held" }