From 4739670f454039d2f3e9604b384a037c111893e4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 14 Oct 2021 16:32:54 +0200 Subject: [PATCH] fdsfsd --- files/routes/posts.py | 2 +- files/templates/default.html | 2 +- files/templates/header.html | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index de539db3a..e805d3444 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -833,7 +833,7 @@ def submit_post(v): n = Notification(comment_id=c_jannied.id, user_id=v.id) g.db.add(n) - if "rama" in request.host or (new_post.url and not "weebzone" in request.host and not "marsey.tech" in request.host): + if "rama" in request.host or new_post.url: new_post.comment_count = 1 g.db.add(new_post) diff --git a/files/templates/default.html b/files/templates/default.html index c09f1d13b..5b733b99f 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -268,7 +268,7 @@ -{% if "marsey.tech" not in request.host and '@' not in request.path %} +{% if '@' not in request.path %} diff --git a/files/templates/header.html b/files/templates/header.html index b7ab66a99..ab1e7225e 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -11,9 +11,7 @@
- {% if "marsey.tech" in request.host %} - marsey.tech - {% elif "gigachadlife" in request.host %} + {% if "gigachadlife" in request.host %} GigaChadLife {% else %}