From: Jeong Arm Date: Wed, 13 Apr 2022 11:25:42 +0000 (+0900) Subject: Fix FetchFeaturedCollectionService (#18030) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=1dc258e4df8aea9950ae21dd93f4240ba1f405f9;p=mastodon.git Fix FetchFeaturedCollectionService (#18030) --- diff --git a/app/services/activitypub/fetch_featured_collection_service.rb b/app/services/activitypub/fetch_featured_collection_service.rb index 66234b711..07a9fe039 100644 --- a/app/services/activitypub/fetch_featured_collection_service.rb +++ b/app/services/activitypub/fetch_featured_collection_service.rb @@ -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