This commit is contained in:
Aevann1 2021-11-22 16:37:33 +02:00
parent a2594c8ad8
commit 3276f297a6
3 changed files with 4 additions and 8 deletions

View file

@ -888,12 +888,11 @@ 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 "pcmemes.net" in request.host or "shithole" in request.host or new_post.url:
if "rama" in request.host or new_post.url:
new_post.comment_count = 1
g.db.add(new_post)
if "rama" in request.host or "pcmemes.net" in request.host or "shithole" in request.host:
if v.id == RED_ID: body = "fuck off red"
if "rama" in request.host:
if v.id == CARP_ID:
if random.random() < 0.02: body = "i love you carp"
else: body = "![](/assets/images/emojis/fuckoffcarp.webp)"