diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-17 10:01:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 10:01:02 +0100 |
commit | 430d4427916b44e6a7c16db1899dfef2eec140fc (patch) | |
tree | e53417f50f9e4ab4b95bf0e9fbb18b0e00b0ce7e /app/services | |
parent | a85912b0d6d2ee68aa35794fbb51c5358768c092 (diff) | |
parent | 77dd4ab8f5d09b128db1e0227b2afcf73d8531e7 (diff) |
Merge pull request #1661 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/activitypub/fetch_featured_collection_service.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/services/activitypub/fetch_featured_collection_service.rb b/app/services/activitypub/fetch_featured_collection_service.rb index 72352aca6..9fce478c1 100644 --- a/app/services/activitypub/fetch_featured_collection_service.rb +++ b/app/services/activitypub/fetch_featured_collection_service.rb @@ -23,7 +23,7 @@ class ActivityPub::FetchFeaturedCollectionService < BaseService def process_items(items) status_ids = items.map { |item| value_or_id(item) } - .filter_map { |uri| ActivityPub::FetchRemoteStatusService.new.call(uri) unless ActivityPub::TagManager.instance.local_uri?(uri) } + .filter_map { |uri| ActivityPub::FetchRemoteStatusService.new.call(uri, on_behalf_of: local_follower) unless ActivityPub::TagManager.instance.local_uri?(uri) } .filter_map { |status| status.id if status.account_id == @account.id } to_remove = [] to_add = status_ids @@ -46,4 +46,8 @@ class ActivityPub::FetchFeaturedCollectionService < BaseService def supported_context? super(@json) end + + def local_follower + @local_follower ||= account.followers.local.without_suspended.first + end end |