Don't include nameless posts in RSS feed

This commit is contained in:
2023-02-21 20:03:02 +11:00
parent c7daf61647
commit 1cd2a3fc5c

View File

@@ -97,6 +97,7 @@ module Adamantium
def for_rss def for_rss
posts posts
.where(post_type: "post", location: nil) .where(post_type: "post", location: nil)
.exclude(name: nil)
.published .published
.combine(:tags) .combine(:tags)
.order(Sequel.desc(:published_at)) .order(Sequel.desc(:published_at))