From 67826a52e01cf2d69a4ed403687e6f1fded10444 Mon Sep 17 00:00:00 2001 From: gooseman <16601315+geese-suck@users.noreply.github.com> Date: Mon, 24 Oct 2022 15:11:16 -0700 Subject: [PATCH] remove hw --- files/classes/user.py | 6 ++---- files/helpers/jinja2.py | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 9e1e2de0e..e0cefbd8c 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -758,16 +758,14 @@ class User(Base): @lazy def profile_url(self): host = current_host() - if self.hw_zombie < 0: - return f"{host}/assets/images/halloween/zombies/{random.randint(1, 10)}.webp?v=1" if self.agendaposter: - return f"{SITE_FULL}/e/chudsey.webp" + return f"{host}/e/chudsey.webp" if self.rainbow: return f"{host}/e/marseysalutepride.webp" if self.profileurl: if self.profileurl.startswith('/'): return host + self.profileurl return self.profileurl - return f"{SITE_FULL}/assets/images/default-profile-pic.webp?v=1008" + return f"{host}/assets/images/default-profile-pic.webp?v=1008" @lazy def json_popover(self, v): diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index 29095f321..490d9ea9c 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -7,7 +7,6 @@ import time from files.helpers.assetcache import assetcache_path from files.helpers.wrappers import calc_users from files.helpers.hosts import current_host -import math @app.template_filter("post_embed") def post_embed(id, v): @@ -54,5 +53,5 @@ def inject_constants(): "EMAIL_REGEX_PATTERN":EMAIL_REGEX_PATTERN, "CONTENT_SECURITY_POLICY_DEFAULT":CONTENT_SECURITY_POLICY_DEFAULT, "CONTENT_SECURITY_POLICY_HOME":CONTENT_SECURITY_POLICY_HOME, - "bar_position": bar_position(), "current_host": current_host() + "current_host": current_host() }