mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: properly escape name of custom emoji
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user