feat: make remove credits setting more petty

This commit is contained in:
Xyphyn committed 2023-09-21 15:47:43 -07:00
1 parent bda818328e
commit aa7378c721
3 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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)
+3 -2
View File
@@ -172,9 +172,10 @@
</Setting>
{#if LINKED_INSTANCE_URL}
<Setting>
<span slot="title">Disable "powered by"</span>
<span slot="title">Remove Credits</span>
<span slot="description">
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.
</span>
<Checkbox bind:checked={$userSettings.hidePhoton}>
{$userSettings.hidePhoton ? 'Enabled' : 'Disabled'}