1
0
Fork 0
forked from gitea/nas

Fix follower synchronization mechanism erroneously removing followers from multi-page collections (#34272)

This commit is contained in:
Claire 2025-03-25 16:50:05 +01:00 committed by KMY
parent fb7d01c6bd
commit 85e8a1cb4f
2 changed files with 36 additions and 8 deletions

View file

@ -57,6 +57,9 @@ class ActivityPub::SynchronizeFollowersService < BaseService
collection = fetch_collection(collection['first']) if collection['first'].present?
return unless collection.is_a?(Hash)
# Abort if we'd have to paginate through more than one page of followers
return if collection['next'].present?
case collection['type']
when 'Collection', 'CollectionPage'
as_array(collection['items'])