forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-08-30 14:20:16 +02:00
parent 1c91ec2dfd
commit 5bb49e0f72
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ def unfollow_user(username, v):
target.stored_subscriber_count = g.db.query(Follow).filter_by(target_id=target.id).count()
g.db.add(target)
existing = g.db.query(Notification).filter_by(followsender=v.id, user_id=target.id).first()
existing = g.db.query(Notification).filter_by(unfollowsender=v.id, user_id=target.id).first()
if not existing: send_unfollow_notif(v.id, target.id, f"@{v.username} has unfollowed you!")
return "", 204