StandardRb

This commit is contained in:
2024-03-22 08:48:47 +11:00
parent a2c11de10f
commit f48e41728a
6 changed files with 9 additions and 10 deletions

View File

@@ -4,9 +4,9 @@ module Main
class Index < Action
include Deps["views.posts.index"]
def handle(req, res)
res.body = cache(key: "posts_index",
params: [req.params[:q]],
content_proc: ->(q) { index.call(context: Main::Views::Context.new(request: req), query: q) })
res.body = cache(key: "posts_index",
params: [req.params[:q]],
content_proc: ->(q) { index.call(context: Main::Views::Context.new(request: req), query: q) })
end
end
end

View File

@@ -60,9 +60,9 @@ module Main
"📷"
else
@prefix_emoji ||= if (match = content.match(Unicode::Emoji::REGEX))
match
else
"💬"
match
else
"💬"
end
end
end