remove vestiges of fart mode
This commit is contained in:
parent
1018cf3412
commit
51ef10d7c3
4 changed files with 2 additions and 18 deletions
|
@ -189,11 +189,6 @@ ACTIONTYPES = {
|
||||||
"icon": 'fa-robot',
|
"icon": 'fa-robot',
|
||||||
"color": 'bg-danger'
|
"color": 'bg-danger'
|
||||||
},
|
},
|
||||||
'disabled_Fart_mode': {
|
|
||||||
"str": 'disabled fart mode',
|
|
||||||
"icon": 'fa-gas-pump-slash',
|
|
||||||
"color": 'bg-danger'
|
|
||||||
},
|
|
||||||
'disabled_FilterNewPosts': {
|
'disabled_FilterNewPosts': {
|
||||||
"str": 'disabled filter new posts',
|
"str": 'disabled filter new posts',
|
||||||
"icon": 'fa-filter',
|
"icon": 'fa-filter',
|
||||||
|
@ -239,11 +234,6 @@ ACTIONTYPES = {
|
||||||
"icon": 'fa-robot',
|
"icon": 'fa-robot',
|
||||||
"color": 'bg-success'
|
"color": 'bg-success'
|
||||||
},
|
},
|
||||||
'enabled_Fart_mode': {
|
|
||||||
"str": 'enabled fart mode',
|
|
||||||
"icon": 'fa-gas-pump',
|
|
||||||
"color": 'bg-success'
|
|
||||||
},
|
|
||||||
'enabled_FilterNewPosts': {
|
'enabled_FilterNewPosts': {
|
||||||
"str": 'enabled filter new posts',
|
"str": 'enabled filter new posts',
|
||||||
"icon": 'fa-filter',
|
"icon": 'fa-filter',
|
||||||
|
@ -424,7 +414,6 @@ ACTIONTYPES = {
|
||||||
"icon": 'fa-eye',
|
"icon": 'fa-eye',
|
||||||
"color": 'bg-success'
|
"color": 'bg-success'
|
||||||
},
|
},
|
||||||
|
|
||||||
'fallback': {
|
'fallback': {
|
||||||
"str": 'unfamiliar action type, please report',
|
"str": 'unfamiliar action type, please report',
|
||||||
"icon": 'fa-robot',
|
"icon": 'fa-robot',
|
||||||
|
|
|
@ -270,7 +270,7 @@ def post_id(pid, anything=None, v=None, sub=None):
|
||||||
else:
|
else:
|
||||||
if post.is_banned and not (v and (v.admin_level > 1 or post.author_id == v.id)): template = "submission_banned.html"
|
if post.is_banned and not (v and (v.admin_level > 1 or post.author_id == v.id)): template = "submission_banned.html"
|
||||||
else: template = "submission.html"
|
else: template = "submission.html"
|
||||||
return render_template(template, v=v, p=post, ids=list(ids), sort=sort, render_replies=True, offset=offset, sub=post.subr, fart=app.config['SETTINGS']['Fart mode'])
|
return render_template(template, v=v, p=post, ids=list(ids), sort=sort, render_replies=True, offset=offset, sub=post.subr)
|
||||||
|
|
||||||
@app.get("/viewmore/<pid>/<sort>/<offset>")
|
@app.get("/viewmore/<pid>/<sort>/<offset>")
|
||||||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||||
|
|
|
@ -73,11 +73,6 @@
|
||||||
<label class="custom-control-label" for="bots">Bots</label>
|
<label class="custom-control-label" for="bots">Bots</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="custom-control custom-switch">
|
|
||||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="Fart mode" {% if site_settings['Fart mode'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/Fart mode');">
|
|
||||||
<label class="custom-control-label" for="Fart mode">Fart mode</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="custom-control custom-switch">
|
<div class="custom-control custom-switch">
|
||||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="FilterNewPosts" {% if site_settings['FilterNewPosts'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/FilterNewPosts');">
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="FilterNewPosts" {% if site_settings['FilterNewPosts'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/FilterNewPosts');">
|
||||||
<label class="custom-control-label" for="FilterNewPosts">Filter New Posts</label>
|
<label class="custom-control-label" for="FilterNewPosts">Filter New Posts</label>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"Bots": true, "Fart mode": false, "Read-only mode": false, "Signups": true, "FilterNewPosts": false, "FilterCommentsMinComments": 0, "FilterCommentsMinKarma": 0, "FilterCommentsMinAgeDays": 0}
|
{"Bots": true, "Read-only mode": false, "Signups": true, "FilterNewPosts": false, "FilterCommentsMinComments": 0, "FilterCommentsMinKarma": 0, "FilterCommentsMinAgeDays": 0}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue