discourse/app/jobs/regular/rebake_custom_emoji_posts.rb

10 lines
201 B
Ruby

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