mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 20:13:43 +08:00
1a7e954e09
* Depending on a hardcoded directory was a flawed design which made it impossible to debug when custom emojis go missing.
9 lines
198 B
Ruby
9 lines
198 B
Ruby
module Jobs
|
|
class RebakeCustomEmojiPosts < Jobs::Base
|
|
def execute(args)
|
|
name = args[:name]
|
|
Post.where("raw LIKE '%:#{name}:%'").find_each { |post| post.rebake! }
|
|
end
|
|
end
|
|
end
|