parent
91e5b0dfdb
commit
cf7fbf2c56
3 changed files with 5 additions and 3 deletions
|
@ -25,6 +25,8 @@ class ActivityPub::Activity::Announce < ActivityPub::Activity
|
|||
|
||||
def fetch_remote_original_status
|
||||
if object_uri.start_with?('http')
|
||||
return if ActivityPub::TagManager.instance.local_uri?(object_uri)
|
||||
|
||||
ActivityPub::FetchRemoteStatusService.new.call(object_uri)
|
||||
elsif @object['url'].present?
|
||||
::FetchRemoteStatusService.new.call(@object['url'])
|
||||
|
|
|
@ -9,7 +9,7 @@ class ActivityPub::ProcessCollectionService < BaseService
|
|||
|
||||
return unless supported_context?
|
||||
return if different_actor? && verify_account!.nil?
|
||||
return if @account.suspended?
|
||||
return if @account.suspended? || @account.local?
|
||||
|
||||
case @json['type']
|
||||
when 'Collection', 'CollectionPage'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue