commit b0fcae6e5fa862c3700463fd7094cd054a872495
parent b0e0e7e03cf7902b03c6e887039e2ee0dc91c15d
Author: Demonstrandum <samuel@knutsen.co>
Date: Fri, 27 Dec 2024 13:45:54 +0000
Update badspeak criteria.
Diffstat:
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,3 +1,5 @@
+.DS_*
+._*
__pycache__/
*.pyc
desktop.ini
diff --git a/shiimoe.py b/shiimoe.py
@@ -2,4 +2,4 @@
import shiimoe
if __name__ == '__main__':
- shiimoe.app.run(debug=True)
+ shiimoe.app.run(debug=True, port=8000)
diff --git a/shiimoe/__init__.py b/shiimoe/__init__.py
@@ -230,7 +230,7 @@ def blogpost(slug):
return template('blogpost.html', **keywords)
LINK_MATCH = re.compile(r"https?://")
-BAD_SPEAK = re.compile(r"@crypt|crypto\b|get rich", re.IGNORECASE)
+BAD_SPEAK = re.compile(r"@crypt|crypto\b|get rich|porn star|pornstar", re.IGNORECASE)
@app.route('/postcomment', methods=['POST'])
def postcomment():