From b02b27ce4fed036f270a2e24cc20bb4b9b211028 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 31 Mar 2022 17:00:57 +0200 Subject: [PATCH] fds --- files/helpers/alerts.py | 3 ++- files/routes/admin.py | 2 ++ files/routes/oauth.py | 3 ++- files/routes/posts.py | 5 ++++- files/templates/comments.html | 2 +- files/templates/home.html | 7 +++++++ 6 files changed, 18 insertions(+), 4 deletions(-) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 476cc1d2e..adadbd6d2 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -9,7 +9,8 @@ def create_comment(text_html, autojanny=False): new_comment = Comment(author_id=author_id, parent_submission=None, - body_html=text_html) + body_html=text_html, + distinguish_level=6) g.db.add(new_comment) g.db.flush() return new_comment.id diff --git a/files/routes/admin.py b/files/routes/admin.py index 77d689d06..ba05516be 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1003,6 +1003,7 @@ def shadowban(user_id, v): parent_submission=None, level=1, body_html=body_html, + distinguish_level=6 ) g.db.add(new_comment) g.db.flush() @@ -1184,6 +1185,7 @@ def ban_user(user_id, v): parent_submission=None, level=1, body_html=body_html, + distinguish_level=6 ) g.db.add(new_comment) g.db.flush() diff --git a/files/routes/oauth.py b/files/routes/oauth.py index 237365a87..8fd04d902 100644 --- a/files/routes/oauth.py +++ b/files/routes/oauth.py @@ -61,7 +61,8 @@ def request_api_keys(v): parent_submission=None, level=1, body_html=body_html, - sentto=2 + sentto=2, + distinguish_level=6 ) g.db.add(new_comment) g.db.flush() diff --git a/files/routes/posts.py b/files/routes/posts.py index f426ea1b3..9e833d7a3 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -728,6 +728,7 @@ def thumbnail_thread(pid): new_comment = Comment(author_id=NOTIFICATIONS_ID, parent_submission=None, body_html=body_html, + distinguish_level=6 ) db.add(new_comment) db.flush() @@ -751,7 +752,8 @@ def thumbnail_thread(pid): new_comment = Comment(author_id=NOTIFICATIONS_ID, parent_submission=None, - body_html=body_html + body_html=body_html, + distinguish_level=6 ) db.add(new_comment) @@ -778,6 +780,7 @@ def thumbnail_thread(pid): new_comment = Comment(author_id=NOTIFICATIONS_ID, parent_submission=None, body_html=body_html, + distinguish_level=6 ) db.add(new_comment) db.flush() diff --git a/files/templates/comments.html b/files/templates/comments.html index 7cdcf6099..84c7aaf80 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -638,7 +638,7 @@ {% if v %} Report - Give Award + Give Award Save diff --git a/files/templates/home.html b/files/templates/home.html index fb8becacb..78fc80e57 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -252,4 +252,11 @@ {% endif %} +{% if v and v.id == AEVANN_ID %} + +{% endif %} {% endblock %} \ No newline at end of file