Add emoji to statuses

This commit is contained in:
2024-03-24 17:24:48 +11:00
parent adb84e0d73
commit 2b1363294b
11 changed files with 99 additions and 21 deletions

View File

@@ -0,0 +1,18 @@
module Main
module Actions
module Feeds
class StatusesJSON < Action
include Deps["views.feeds.statuses_json", "repos.post_repo"]
def handle(req, res)
posts = post_repo.statuses_for_rss.map do |post|
Decorators::Posts::Decorator.new(post).to_h
end
res.content_type = "application/json; charset=utf-8"
res.body = JSON.generate(posts, quirks_mode: true)
end
end
end
end
end