discourse/app/jobs/regular/rebake_custom_emoji_posts.rb

Failed to ignore revisions in .git-blame-ignore-revs.

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