[Glitch] Only suggest discoverable accounts in collection account editor
Port 39ff07bc89 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
79fba522e1
commit
5c47ed2d47
4 files changed
+36
-3
No files matched your search
@@ -132,7 +132,11 @@ export const CollectionAccounts: React.FC<{
|
||||
accountIds: suggestedAccountIds,
|
||||
isLoading: isLoadingSuggestions,
|
||||
searchAccounts,
|
||||
} = useSearchAccounts();
|
||||
} = useSearchAccounts({
|
||||
filterResults: (account) =>
|
||||
// Only suggest accounts who allow being featured/recommended
|
||||
account.feature_approval.current_user === 'automatic',
|
||||
});
|
||||
|
||||
const suggestedItems = suggestedAccountIds.map((id) => ({
|
||||
id,
|
||||
|
||||
Reference in new issue
Block a user