Skip to content

Commit

Permalink
Fix alternative relay support regression (mastodon#10398)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored Mar 27, 2019
1 parent 4526516 commit 6195871
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/lib/activitypub/activity/announce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def related_to_local_activity?
followed_by_local_accounts? || requested_through_relay? || reblog_of_local_status?
end

def requested_through_relay?
super || Relay.find_by(inbox_url: @account.inbox_url)&.enabled?
end

def reblog_of_local_status?
status_from_uri(object_uri)&.account&.local?
end
Expand Down

0 comments on commit 6195871

Please sign in to comment.