From aa7378c7210b3e32e0248978bc91c45bb52de25f Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Thu, 21 Sep 2023 15:47:43 -0700 Subject: [PATCH] feat: make remove credits setting more petty --- README.md | 2 +- src/lib/settings.ts | 2 +- src/routes/settings/+page.svelte | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2e60b8db..2942b7fa 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ The following environment variables can be set to override the default settings: | PUBLIC_NSFW_BLUR | `bool` | true | | PUBLIC_NEW_VOTE_BUTTONS | `bool` | false | | PUBLIC_RANDOM_PLACEHOLDERS | `bool` | true | -| PUBLIC_HIDE_POWERED_BY | `bool` | false | +| PUBLIC_REMOVE_CREDIT | `bool` | false | The values for `SortType`, `ListingType`, and `CommentSortType` are defined by the lemmy-js-client library. diff --git a/src/lib/settings.ts b/src/lib/settings.ts index d869e9c9..1fc4ef64 100644 --- a/src/lib/settings.ts +++ b/src/lib/settings.ts @@ -100,7 +100,7 @@ export const defaultSettings: Settings = { view: 'list', font: 'system', leftAlign: false, - hidePhoton: toBool(env.PUBLIC_HIDE_POWERED_BY) ?? false, + hidePhoton: toBool(env.PUBLIC_REMOVE_CREDIT) ?? false, } export const userSettings = writable(defaultSettings) diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte index ea676f1b..e1ed7556 100644 --- a/src/routes/settings/+page.svelte +++ b/src/routes/settings/+page.svelte @@ -172,9 +172,10 @@ {#if LINKED_INSTANCE_URL} - Disable "powered by" + Remove Credits - Disable the "Powered by Photon" in the top left corner. + Disable the "Powered by Photon" in the top left corner, thus decreasing + visibility of the original project and limiting discovery. {$userSettings.hidePhoton ? 'Enabled' : 'Disabled'}