FIX: properly escape name of custom emoji

This commit is contained in:
Régis Hanol 2018-10-11 09:35:23 +02:00
parent 3c59106bac
commit 09961fb425
1 changed files with 1 additions and 2 deletions

View File

@ -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