give carp notifs for new users on rdrama again + make new users follow kippy on PCM

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-06 00:22:57 +02:00
parent 67d6d7e2de
commit f5f0f7d528
1 changed files with 9 additions and 0 deletions

View File

@ -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: