mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 13:31:03 +08:00
FIX: properly escape name of custom emoji
This commit is contained in:
parent
3c59106bac
commit
09961fb425
|
@ -1,8 +1,7 @@
|
|||
module Jobs
|
||||
class RebakeCustomEmojiPosts < Jobs::Base
|
||||
def execute(args)
|
||||
name = args[:name]
|
||||
Post.where("raw LIKE '%:#{name}:%'").find_each { |post| post.rebake! }
|
||||
Post.where("raw LIKE ?", "%:#{args[:name]}:%").find_each(&:rebake!)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user