mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Only federate accepted collection items (#38385)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user