mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
remove unused community.show_home setting
This commit is contained in:
parent
6b526635ca
commit
25d5f67128
5 changed files with 1 additions and 7 deletions
|
@ -75,7 +75,6 @@ class EditCommunityForm(FlaskForm):
|
||||||
local_only = BooleanField(_l('Only accept posts from current instance'))
|
local_only = BooleanField(_l('Only accept posts from current instance'))
|
||||||
restricted_to_mods = BooleanField(_l('Only moderators can post'))
|
restricted_to_mods = BooleanField(_l('Only moderators can post'))
|
||||||
new_mods_wanted = BooleanField(_l('New moderators wanted'))
|
new_mods_wanted = BooleanField(_l('New moderators wanted'))
|
||||||
show_home = BooleanField(_l('Posts show on home page'))
|
|
||||||
show_popular = BooleanField(_l('Posts can be popular'))
|
show_popular = BooleanField(_l('Posts can be popular'))
|
||||||
show_all = BooleanField(_l('Posts show in All list'))
|
show_all = BooleanField(_l('Posts show in All list'))
|
||||||
low_quality = BooleanField(_l("Low quality / toxic - upvotes in here don't add to reputation"))
|
low_quality = BooleanField(_l("Low quality / toxic - upvotes in here don't add to reputation"))
|
||||||
|
|
|
@ -683,7 +683,6 @@ def admin_community_edit(community_id):
|
||||||
community.local_only = form.local_only.data
|
community.local_only = form.local_only.data
|
||||||
community.restricted_to_mods = form.restricted_to_mods.data
|
community.restricted_to_mods = form.restricted_to_mods.data
|
||||||
community.new_mods_wanted = form.new_mods_wanted.data
|
community.new_mods_wanted = form.new_mods_wanted.data
|
||||||
community.show_home = form.show_home.data
|
|
||||||
community.show_popular = form.show_popular.data
|
community.show_popular = form.show_popular.data
|
||||||
community.show_all = form.show_all.data
|
community.show_all = form.show_all.data
|
||||||
community.low_quality = form.low_quality.data
|
community.low_quality = form.low_quality.data
|
||||||
|
@ -740,7 +739,6 @@ def admin_community_edit(community_id):
|
||||||
form.local_only.data = community.local_only
|
form.local_only.data = community.local_only
|
||||||
form.new_mods_wanted.data = community.new_mods_wanted
|
form.new_mods_wanted.data = community.new_mods_wanted
|
||||||
form.restricted_to_mods.data = community.restricted_to_mods
|
form.restricted_to_mods.data = community.restricted_to_mods
|
||||||
form.show_home.data = community.show_home
|
|
||||||
form.show_popular.data = community.show_popular
|
form.show_popular.data = community.show_popular
|
||||||
form.show_all.data = community.show_all
|
form.show_all.data = community.show_all
|
||||||
form.low_quality.data = community.low_quality
|
form.low_quality.data = community.low_quality
|
||||||
|
|
|
@ -456,7 +456,7 @@ class Community(db.Model):
|
||||||
private_mods = db.Column(db.Boolean, default=False)
|
private_mods = db.Column(db.Boolean, default=False)
|
||||||
|
|
||||||
# Which feeds posts from this community show up in
|
# Which feeds posts from this community show up in
|
||||||
show_home = db.Column(db.Boolean, default=False) # For anonymous users. When logged in, the home feed shows posts from subscribed communities
|
show_home = db.Column(db.Boolean, default=False) # unused
|
||||||
show_popular = db.Column(db.Boolean, default=True)
|
show_popular = db.Column(db.Boolean, default=True)
|
||||||
show_all = db.Column(db.Boolean, default=True)
|
show_all = db.Column(db.Boolean, default=True)
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
<th># Posts</th>
|
<th># Posts</th>
|
||||||
<th>Retention</th>
|
<th>Retention</th>
|
||||||
<th>Layout</th>
|
<th>Layout</th>
|
||||||
<th title="{{ _('Posts show on home page.') }}">Home</th>
|
|
||||||
<th title="{{ _('Posts can be popular.') }}">Popular</th>
|
<th title="{{ _('Posts can be popular.') }}">Popular</th>
|
||||||
<th title="{{ _('Posts show in the All feed.') }}">All</th>
|
<th title="{{ _('Posts show in the All feed.') }}">All</th>
|
||||||
<th title="{{ _('Content warning, NSFW or NSFL set for community.') }}">Warning</th>
|
<th title="{{ _('Content warning, NSFW or NSFL set for community.') }}">Warning</th>
|
||||||
|
@ -37,7 +36,6 @@
|
||||||
<td>{{ community.post_count }}</td>
|
<td>{{ community.post_count }}</td>
|
||||||
<td>{{ community.content_retention if community.content_retention != -1 }}</td>
|
<td>{{ community.content_retention if community.content_retention != -1 }}</td>
|
||||||
<td>{{ community.default_layout if community.default_layout }}</td>
|
<td>{{ community.default_layout if community.default_layout }}</td>
|
||||||
<th>{{ '✓'|safe if community.show_home else '✗'|safe }}</th>
|
|
||||||
<th>{{ '✓'|safe if community.show_popular else '✗'|safe }}</th>
|
<th>{{ '✓'|safe if community.show_popular else '✗'|safe }}</th>
|
||||||
<th>{{ '✓'|safe if community.show_all else '✗'|safe }}</th>
|
<th>{{ '✓'|safe if community.show_all else '✗'|safe }}</th>
|
||||||
<th>{{ '⚠'|safe if community.nsfw or community.nsfl or community.content_warning else ''|safe }}</th>
|
<th>{{ '⚠'|safe if community.nsfw or community.nsfl or community.content_warning else ''|safe }}</th>
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
{{ render_field(form.banned) }}
|
{{ render_field(form.banned) }}
|
||||||
{{ render_field(form.local_only) }}
|
{{ render_field(form.local_only) }}
|
||||||
{{ render_field(form.new_mods_wanted) }}
|
{{ render_field(form.new_mods_wanted) }}
|
||||||
{{ render_field(form.show_home) }}
|
|
||||||
{{ render_field(form.show_popular) }}
|
{{ render_field(form.show_popular) }}
|
||||||
{{ render_field(form.show_all) }}
|
{{ render_field(form.show_all) }}
|
||||||
{{ render_field(form.low_quality) }}
|
{{ render_field(form.low_quality) }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue