discourse/app/jobs/regular/rebake_custom_emoji_posts.rb
2018-10-11 09:35:23 +02:00

8 lines
170 B
Ruby

module Jobs
class RebakeCustomEmojiPosts < Jobs::Base
def execute(args)
Post.where("raw LIKE ?", "%:#{args[:name]}:%").find_each(&:rebake!)
end
end
end