Only federate accepted collection items (#38385)

This commit is contained in:
David Roetzel
2026-03-25 14:04:09 +01:00
committed by GitHub
parent 84ea8334fe
commit bcead76410
3 changed files with 20 additions and 1 deletions

View File

@@ -33,7 +33,9 @@ class ActivityPub::FeaturedCollectionsController < ApplicationController
def set_collections
authorize @account, :index_collections?
@collections = @account.collections.page(params[:page]).per(PER_PAGE)
@collections = @account.collections
.includes(:accepted_collection_items)
.page(params[:page]).per(PER_PAGE)
rescue Mastodon::NotPermittedError
not_found
end