about summary refs log tree commit diff
path: root/app/services/activitypub
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2022-04-13 20:25:42 +0900
committerGitHub <noreply@github.com>2022-04-13 13:25:42 +0200
commit1de748bf5e775b7b5f6b45b73d90772cba899a6d (patch)
treea13940f581e11afc1b20cdc64889345f92418346 /app/services/activitypub
parent85b34a8d62054cb3ff9eb02ded6b1f86195ccb5b (diff)
Fix FetchFeaturedCollectionService (#18030)
Diffstat (limited to 'app/services/activitypub')
-rw-r--r--app/services/activitypub/fetch_featured_collection_service.rb2
1 files changed, 1 insertions, 1 deletions
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