Do not return undiscoverable collections (#37560)

This commit is contained in:
David Roetzel authored and GitHub committed 2026-01-21 12:30:07 +00:00
1 parent e7c6600d83
commit 783504f36a
3 files changed
+28

No files matched your search

@@ -74,6 +74,7 @@ class Api::V1Alpha::CollectionsController < Api::BaseController
.order(created_at: :desc)
.offset(offset_param)
.limit(limit_param(DEFAULT_COLLECTIONS_LIMIT))
@collections = @collections.discoverable unless @account == current_account
end
def set_collection