blacklist -> blocklist #31 to honor zuckerimtank@twitter.com

master
b3yond 2018-09-15 19:01:58 +02:00
parent 6edce5ba57
commit dd1e967569
3 changed files with 7 additions and 8 deletions

View File

@ -136,10 +136,10 @@ def update_trigger_patterns(user):
return user.state()
@post('/settings/blacklist')
@post('/settings/blocklist')
@view('template/settings.tpl')
def update_badwords(user):
user.set_badwords(request.forms['blacklist'])
user.set_badwords(request.forms['blocklist'])
return user.state()

View File

@ -113,15 +113,14 @@
</div>
<div>
<h2>Edit the blacklist</h2>
<h2>Edit the blocklist</h2>
<p>
These words are not allowed in reports.
If you encounter spam, you can add more here - the bot will ignore reports which use such words.
<!-- There are words which you can't exclude from the blacklist, e.g. certain racist, sexist, or antisemitic slurs. (to be implemented) -->
There are words which you can't exclude from the blocklist, e.g. certain racist, sexist, or antisemitic slurs.
</p>
<form action="/settings/blacklist" method="post">
<!-- find a way to display current blacklist. js which reads from a cookie? template? -->
<textarea id="blacklist" rows="8" cols="70" name="blacklist" wrap="physical">{{badwords}}</textarea>
<form action="/settings/blocklist" method="post">
<textarea id="blocklist" rows="8" cols="70" name="blocklist" wrap="physical">{{badwords}}</textarea>
<input name='confirm' value='Submit' type='submit'/>
</form>
</div>

View File

@ -181,7 +181,7 @@ schlitz
# - city
# - markdown
# - goodlist
# - blacklist
# - blocklist
# - logged in with twitter?
# - logged in with mastodon?
# - enabled?