1
0
Fork 0
forked from gitea/nas

Change: #457 サイレンスされているユーザーに、フォロー相手以外への絵文字リアクションを禁止 (#522)

This commit is contained in:
KMY(雪あすか) 2024-02-06 09:29:46 +09:00 committed by GitHub
parent f30b6f55e2
commit 230c621843
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 75 additions and 1 deletions

View file

@ -34,7 +34,7 @@ class ActivityPub::Activity::Like < ActivityPub::Activity
def process_emoji_reaction
return if !@original_status.account.local? && !Setting.receive_other_servers_emoji_reaction
return if silence_domain? && (!@original_status.local? || !@original_status.account.following?(@account))
return if (silence_domain? || @account.silenced?) && (!@original_status.local? || !@original_status.account.following?(@account))
# custom emoji
emoji = nil