Fix: 他のサーバー同士のスタンプでemoji_reaction_policyが適用される問題 (#165)

* Fix: 他のサーバー同士のスタンプで`emoji_reaction_policy`が適用される問題

* こっちに変更

* #161 テストを追加

* テスト修正
This commit is contained in:
KMY(雪あすか) 2023-10-22 09:46:19 +09:00 committed by GitHub
parent 4f37ede886
commit eb52b72152
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 202 additions and 0 deletions

View file

@ -399,6 +399,7 @@ class Account < ApplicationRecord
def allow_emoji_reaction?(account)
return false if account.nil?
return true unless local? || account.local?
show_emoji_reaction?(account)
end