diff --git a/files/routes/comments.py b/files/routes/comments.py index 01a5f2b8ef..9b4b605d09 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -207,7 +207,7 @@ def api_comment(v): body = request.values.get("body", "").strip()[:10000] if v.admin_level > 1 and parent_post.id == 37749 and level == 1: - with open(f"snappy.txt", "a", encoding="utf-8") as f: + with open(f"snappy_{SITE_NAME}.txt", "a", encoding="utf-8") as f: f.write('\n{[para]}\n' + body) if parent_post.id not in ADMIGGERS: diff --git a/files/routes/posts.py b/files/routes/posts.py index 447ce91060..40d130c668 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -22,8 +22,8 @@ from sys import stdout snappyquotes = [f':#{x}:' for x in marseys_const2] -if SITE_NAME == 'Drama': - with open(f'snappy.txt', "r", encoding="utf-8") as f: +if path.exists(f'snappy_{SITE_NAME}.txt'): + with open(f'snappy_{SITE_NAME}.txt', "r", encoding="utf-8") as f: snappyquotes += f.read().split("\n{[para]}\n") IMGUR_KEY = environ.get("IMGUR_KEY").strip() diff --git a/files/templates/changelog.html b/files/templates/changelog.html index e3030a13b4..18ae76fe23 100644 --- a/files/templates/changelog.html +++ b/files/templates/changelog.html @@ -67,8 +67,8 @@ {% block content %} {% if v %} - Subscribe - Unsubscribe + Subscribe + Unsubscribe {% endif %}