diff --git a/files/assets/css/main.css b/files/assets/css/main.css
index 43235f3b3..8d84799d8 100644
--- a/files/assets/css/main.css
+++ b/files/assets/css/main.css
@@ -4462,7 +4462,6 @@ div.deleted.banned {
}
.container, .container-fluid {
background-color: var(--gray-700) !important;
- border-radius: 5px !important;
}
.btn {
background-color: var(--gray-700) !important;
diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py
index 02e1b3e90..4207b858e 100644
--- a/files/helpers/wrappers.py
+++ b/files/helpers/wrappers.py
@@ -4,10 +4,10 @@ from files.helpers.const import *
def get_logged_in_user():
- token = request.headers.get("Authorization")
+ token = request.headers.get("Authorization","").strip()
if token:
- client = g.db.query(ClientAuth).filter(ClientAuth.access_token == token).first()
+ client = g.db.query(ClientAuth).filter(ClientAuth.access_token == token).one_or_none()
if not client: return None
v = client.user
@@ -21,7 +21,7 @@ def get_logged_in_user():
if not uid or not logged_in or uid != logged_in: return None
try:
- if g.db: v = g.db.query(User).filter_by(id=uid).one_or_none()
+ if g.db: v = g.db.query(User).filter_by(id=logged_in).one_or_none()
else: return None
except: return None
diff --git a/files/routes/awards.py b/files/routes/awards.py
index 11f5f91d0..24dee9cdd 100644
--- a/files/routes/awards.py
+++ b/files/routes/awards.py
@@ -241,6 +241,7 @@ def award_post(pid, v):
link = f"[this post]({post.permalink})"
send_repeatable_notification(author.id, f"Your account has been suspended permanently for {link}. You must [provide the admins](/contact) a timestamped picture of you touching grass to get unbanned!")
send_repeatable_notification(CARP_ID, f"@{v.username} used {kind} award on [{post.shortlink}]({post.shortlink})")
+ send_repeatable_notification(DAD_ID, f"@{v.username} used {kind} award on [{post.shortlink}]({post.shortlink})")
elif kind == "pin":
if post.stickied and post.stickied.startswith("t:"): t = int(post.stickied[2:]) + 3600
else: t = int(time.time()) + 3600
@@ -413,6 +414,7 @@ def award_comment(cid, v):
link = f"[this comment]({c.permalink})"
send_repeatable_notification(author.id, f"Your account has been suspended permanently for {link}. You must [provide the admins](/contact) a timestamped picture of you touching grass to get unbanned!")
send_repeatable_notification(CARP_ID, f"@{v.username} used {kind} award on [{c.shortlink}]({c.shortlink})")
+ send_repeatable_notification(DAD_ID, f"@{v.username} used {kind} award on [{c.shortlink}]({c.shortlink})")
elif kind == "pin":
if c.is_pinned and c.is_pinned.startswith("t:"): t = int(c.is_pinned[2:]) + 3600
else: t = int(time.time()) + 3600
diff --git a/files/routes/posts.py b/files/routes/posts.py
index f4050d34a..352bb5261 100644
--- a/files/routes/posts.py
+++ b/files/routes/posts.py
@@ -771,7 +771,7 @@ def submit_post(v):
domain = parsed_url.netloc
qd = parse_qs(parsed_url.query)
- filtered = dict((k, v) for k, v in qd.items() if not k.startswith('utm_') and not k.startswith('ref_'))
+ filtered = dict((k, val) for k, val in qd.items() if not k.startswith('utm_') and not k.startswith('ref_'))
new_url = ParseResult(scheme="https",
netloc=parsed_url.netloc,
diff --git a/files/routes/settings.py b/files/routes/settings.py
index 7a05df815..c3e048d78 100644
--- a/files/routes/settings.py
+++ b/files/routes/settings.py
@@ -52,7 +52,7 @@ def sex(v):
users = g.db.query(User).filter(User.patron > 0, User.patron < 5).all()
for u in users:
- if not u.email or u.email.lower() not in emails: print(u.username)
+ if not u.email or u.email.lower() not in emails: print(f'{u.username} - {u.email}')
return "sex"
diff --git a/files/templates/CHRISTMAS/authforms.html b/files/templates/CHRISTMAS/authforms.html
index 0ef68cfd2..e4bec2049 100644
--- a/files/templates/CHRISTMAS/authforms.html
+++ b/files/templates/CHRISTMAS/authforms.html
@@ -14,11 +14,11 @@
{% if v %}
-
+
{% if v.agendaposter %}{% elif v.css %}{% endif %}
{% else %}
-
+
{% endif %}
diff --git a/files/templates/CHRISTMAS/default.html b/files/templates/CHRISTMAS/default.html
index 67f5fdaf9..a1234f702 100644
--- a/files/templates/CHRISTMAS/default.html
+++ b/files/templates/CHRISTMAS/default.html
@@ -186,9 +186,9 @@
{% block stylesheets %}
-
+
-
+
diff --git a/files/templates/CHRISTMAS/login.html b/files/templates/CHRISTMAS/login.html
index b440e3481..464f53bd0 100644
--- a/files/templates/CHRISTMAS/login.html
+++ b/files/templates/CHRISTMAS/login.html
@@ -13,9 +13,9 @@