This commit is contained in:
parent
780426db31
commit
c73b173f09
2 changed files with 108 additions and 1 deletions
|
@ -34,6 +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))
|
||||
|
||||
# custom emoji
|
||||
emoji = nil
|
||||
|
@ -125,13 +126,20 @@ class ActivityPub::Activity::Like < ActivityPub::Activity
|
|||
end
|
||||
|
||||
def skip_download?(domain)
|
||||
DomainBlock.reject_media?(domain)
|
||||
return true if DomainBlock.reject_media?(domain)
|
||||
return false if @account.domain == domain
|
||||
|
||||
DomainBlock.blocked?(domain) || (DomainBlock.silence?(domain) && !@original_status.account.following?(@account))
|
||||
end
|
||||
|
||||
def block_domain?
|
||||
DomainBlock.blocked?(@account.domain)
|
||||
end
|
||||
|
||||
def silence_domain?
|
||||
DomainBlock.silence?(@account.domain)
|
||||
end
|
||||
|
||||
def misskey_favourite?
|
||||
misskey_shortcode = @json['_misskey_reaction']&.delete(':')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue