diff options
author | Jeong Arm <kjwonmail@gmail.com> | 2022-04-13 20:25:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 13:25:42 +0200 |
commit | 1de748bf5e775b7b5f6b45b73d90772cba899a6d (patch) | |
tree | a13940f581e11afc1b20cdc64889345f92418346 /app/services | |
parent | 85b34a8d62054cb3ff9eb02ded6b1f86195ccb5b (diff) |
Fix FetchFeaturedCollectionService (#18030)
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/activitypub/fetch_featured_collection_service.rb | 2 |
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 |