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

This commit is contained in:
b3yond 2018-09-15 19:01:58 +02:00
parent ad4e65e0fa
commit fcab07246b
3 changed files with 7 additions and 8 deletions

View file

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

View file

@ -113,15 +113,14 @@
</div> </div>
<div> <div>
<h2>Edit the blacklist</h2> <h2>Edit the blocklist</h2>
<p> <p>
These words are not allowed in reports. 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. 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> </p>
<form action="/settings/blacklist" method="post"> <form action="/settings/blocklist" method="post">
<!-- find a way to display current blacklist. js which reads from a cookie? template? --> <textarea id="blocklist" rows="8" cols="70" name="blocklist" wrap="physical">{{badwords}}</textarea>
<textarea id="blacklist" rows="8" cols="70" name="blacklist" wrap="physical">{{badwords}}</textarea>
<input name='confirm' value='Submit' type='submit'/> <input name='confirm' value='Submit' type='submit'/>
</form> </form>
</div> </div>

View file

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