Do not return undiscoverable collections (#37560)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user