diff --git a/package.json b/package.json index 48f8487f..573d76f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photon-lemmy", - "version": "0.0.1", + "version": "23.7.10", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/lib/components/community/CommunityCard.svelte b/src/lib/components/community/CommunityCard.svelte index c430102f..93cd8ef8 100644 --- a/src/lib/components/community/CommunityCard.svelte +++ b/src/lib/components/community/CommunityCard.svelte @@ -1,10 +1,14 @@ @@ -51,6 +100,31 @@ community_view.community.actor_id ).hostname} + + {#if $authData} + + {community_view.subscribed == 'Subscribed' || + community_view.subscribed == 'Pending' + ? 'Unsubscribe' + : 'Subscribe'} + + + {community_view.blocked ? 'Unblock' : 'Block'} + + {/if} +