From f5f0f7d5280394df48a6d50814dd02bce6ec0f95 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 6 Oct 2022 00:22:57 +0200 Subject: [PATCH] give carp notifs for new users on rdrama again + make new users follow kippy on PCM --- files/routes/login.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/files/routes/login.py b/files/routes/login.py index 4dbca64b39..25a14b5a2a 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -374,6 +374,8 @@ def sign_up_post(v): session["lo_user"] = new_user.id + if SITE == 'rdrama.net': + send_notification(CARP_ID, f"A new user - @{new_user.username} - has signed up!") if SITE == 'watchpeopledie.co': carp = get_account(CARP_ID) new_follow = Follow(user_id=new_user.id, target_id=carp.id) @@ -381,6 +383,13 @@ def sign_up_post(v): carp.stored_subscriber_count += 1 g.db.add(carp) send_notification(carp.id, f"A new user - @{new_user.username} - has followed you automatically!") + if SITE == 'pcmemes.net': + kippy = get_account(KIPPY_ID) + new_follow = Follow(user_id=new_user.id, target_id=kippy.id) + g.db.add(new_follow) + kippy.stored_subscriber_count += 1 + g.db.add(kippy) + send_notification(kippy.id, f"A new user - @{new_user.username} - has followed you automatically!") redir = request.values.get("redirect") if redir: