forked from MarseyWorld/MarseyWorld
give carp notifs for new users on rdrama again + make new users follow kippy on PCM
parent
67d6d7e2de
commit
f5f0f7d528
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue