From 03fa81bec8b35cd527ba56be3a1c8e13e3460e49 Mon Sep 17 00:00:00 2001 From: Peter Bui Date: Wed, 26 Jul 2023 17:26:50 -0400 Subject: [PATCH] fix: only list/search subscribed communities (#26) Right now, listing and searching 'All' communities makes it difficult to find the appropriate community to post to, particularly if it has a common name such as technology, news, or linux. Downside of this is that you can only post to communities you subscribe to... but this was what we did before 9c9a3dc. --- src/lib/components/lemmy/post/PostForm.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/lemmy/post/PostForm.svelte b/src/lib/components/lemmy/post/PostForm.svelte index bc5e695d..e654b24c 100644 --- a/src/lib/components/lemmy/post/PostForm.svelte +++ b/src/lib/components/lemmy/post/PostForm.svelte @@ -68,7 +68,7 @@ const list = await getClient().listCommunities({ auth: $authData?.token, - type_: 'All', + type_: 'Subscribed', sort: 'Active', limit: 40, }) @@ -157,6 +157,7 @@ auth: $authData?.token, type_: 'Communities', limit: 20, + listing_type: 'Subscribed', sort: 'Active', })