Add a feed for statuses

This commit is contained in:
2023-04-14 20:19:49 +10:00
parent d3c4723f17
commit c4a1a39740
6 changed files with 68 additions and 0 deletions

View File

@@ -153,6 +153,15 @@ module Adamantium
.to_a
end
def statuses_for_rss
posts
.where(post_type: "post", name: nil, location: nil)
.published
.combine(:tags)
.order(Sequel.desc(:published_at))
.to_a
end
def fetch!(slug)
posts
.published