feat: add community creation
This commit is contained in:
1 parent
98a5a2f6f2
commit
7e76b1684c
8 files changed
+210
-31
No files matched your search
@@ -9,6 +9,7 @@
|
||||
import FormattedNumber from '$lib/components/util/FormattedNumber.svelte'
|
||||
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
|
||||
import { getClient } from '$lib/lemmy.js'
|
||||
import { addSubscription } from '$lib/lemmy/user.js'
|
||||
import type { CommunityView } from 'lemmy-js-client'
|
||||
import {
|
||||
Calendar,
|
||||
@@ -43,6 +44,7 @@
|
||||
}
|
||||
|
||||
community_view.subscribed = subscribed ? 'NotSubscribed' : 'Subscribed'
|
||||
addSubscription(community_view.community, !subscribed)
|
||||
|
||||
loading.subscribing = false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user