feat: make remove credits setting more petty
This commit is contained in:
1 parent
bda818328e
commit
aa7378c721
3 files changed
+5
-4
No files matched your search
@@ -71,7 +71,7 @@ The following environment variables can be set to override the default settings:
|
|||||||
| PUBLIC_NSFW_BLUR | `bool` | true |
|
| PUBLIC_NSFW_BLUR | `bool` | true |
|
||||||
| PUBLIC_NEW_VOTE_BUTTONS | `bool` | false |
|
| PUBLIC_NEW_VOTE_BUTTONS | `bool` | false |
|
||||||
| PUBLIC_RANDOM_PLACEHOLDERS | `bool` | true |
|
| 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.
|
The values for `SortType`, `ListingType`, and `CommentSortType` are defined by the lemmy-js-client library.
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -100,7 +100,7 @@ export const defaultSettings: Settings = {
|
|||||||
view: 'list',
|
view: 'list',
|
||||||
font: 'system',
|
font: 'system',
|
||||||
leftAlign: false,
|
leftAlign: false,
|
||||||
hidePhoton: toBool(env.PUBLIC_HIDE_POWERED_BY) ?? false,
|
hidePhoton: toBool(env.PUBLIC_REMOVE_CREDIT) ?? false,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const userSettings = writable(defaultSettings)
|
export const userSettings = writable(defaultSettings)
|
||||||
|
|||||||
@@ -172,9 +172,10 @@
|
|||||||
</Setting>
|
</Setting>
|
||||||
{#if LINKED_INSTANCE_URL}
|
{#if LINKED_INSTANCE_URL}
|
||||||
<Setting>
|
<Setting>
|
||||||
<span slot="title">Disable "powered by"</span>
|
<span slot="title">Remove Credits</span>
|
||||||
<span slot="description">
|
<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>
|
</span>
|
||||||
<Checkbox bind:checked={$userSettings.hidePhoton}>
|
<Checkbox bind:checked={$userSettings.hidePhoton}>
|
||||||
{$userSettings.hidePhoton ? 'Enabled' : 'Disabled'}
|
{$userSettings.hidePhoton ? 'Enabled' : 'Disabled'}
|
||||||
|
|||||||
Reference in new issue
Block a user