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

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

* こっちに変更

* #161 テストを追加

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

View file

@ -392,6 +392,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