master
Aevann1 2021-12-30 17:03:28 +02:00
parent 89e2e74215
commit c5a8a69278
3 changed files with 2 additions and 5 deletions

View File

@ -1072,6 +1072,7 @@ def unsticky_comment(cid, v):
if comment.is_pinned.endswith("(pin award)"): return {"error": "Can't unpin award pins!"}, 403
comment.is_pinned = None
g.db.add(comment)
ma=ModAction(

View File

@ -261,10 +261,6 @@ def api_comment(v):
v.ban(reason="Spamming.",
days=1)
for alt in v.alts:
if not alt.is_suspended:
alt.ban(reason="Spamming.", days=1)
for comment in similar_comments:
comment.is_banned = True
comment.ban_reason = "AutoJanny"

View File

@ -278,7 +278,7 @@
{% block sidebar %}
<div class="col sidebar text-left d-none d-lg-block pt-3 bg-white" style="max-width:300px">
<div class="sidebar-section">
<img src="/static/assets/images/{{'SITE_NAME' | app_config}}/banners/{{range(1,96)|random()}}.webp?a=1" width=100%>
<img src="/static/assets/images/{{'SITE_NAME' | app_config}}/banners/{{range(1,95)|random()}}.webp?a=2" width=100%>
<a class="btn btn-primary btn-block mt-4" href="/submit">SUBMIT DRAMA!</a>
{% set template = "sidebar_" + environ.get("SITE_NAME") + ".html" %}
{% include template %}