discourse/app/jobs/regular/rebake_custom_emoji_posts.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
203 B
Ruby
Raw Normal View History

# 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