Fix FetchFeaturedCollectionService (#18030)

signup-info-prompt
Jeong Arm 2022-04-13 20:25:42 +09:00 committed by GitHub
parent 85b34a8d62
commit 1de748bf5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class ActivityPub::FetchFeaturedCollectionService < BaseService
next if ActivityPub::TagManager.instance.local_uri?(uri)
status = ActivityPub::FetchRemoteStatusService.new.call(uri, on_behalf_of: local_follower)
next unless status.account_id == @account.id
next unless status&.account_id == @account.id
status.id
rescue ActiveRecord::RecordInvalid => e