parent
37779910df
commit
c3578970e1
1 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,8 @@
|
|||
#
|
||||
|
||||
class InstanceInfo < ApplicationRecord
|
||||
after_commit :reset_cache
|
||||
|
||||
EMOJI_REACTION_AVAILABLE_SOFTWARES = %w(
|
||||
misskey
|
||||
calckey
|
||||
|
@ -43,4 +45,8 @@ class InstanceInfo < ApplicationRecord
|
|||
|
||||
features.include?('emoji_reaction')
|
||||
end
|
||||
|
||||
def reset_cache
|
||||
Rails.cache.delete("emoji_reaction_available_domain:#{domain}")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue