StandardRb
This commit is contained in:
@@ -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
|
||||
|
@@ -60,9 +60,9 @@ module Main
|
||||
"📷"
|
||||
else
|
||||
@prefix_emoji ||= if (match = content.match(Unicode::Emoji::REGEX))
|
||||
match
|
||||
else
|
||||
"💬"
|
||||
match
|
||||
else
|
||||
"💬"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user