forked from rDrama/rDrama
make the unblockable and fish notifs actually get sent
parent
7cac2c19a1
commit
5fe6c599df
|
@ -668,6 +668,7 @@ def settings_block_user(v):
|
|||
if user.unblockable:
|
||||
if not v.shadowbanned:
|
||||
send_notification(user.id, f"@{v.username} has tried to block you and failed because of your unblockable status!")
|
||||
g.db.commit()
|
||||
abort(403, f"@{user.username} is unblockable!")
|
||||
|
||||
if user.id == v.id: abort(400, "You can't block yourself")
|
||||
|
|
|
@ -1134,6 +1134,7 @@ def unfollow_user(username, v):
|
|||
if target.fish:
|
||||
if not v.shadowbanned:
|
||||
send_notification(target.id, f"@{v.username} has tried to unfollow you and failed because of your fish award!")
|
||||
g.db.commit()
|
||||
abort(400, f"You can't unfollow @{target.username}")
|
||||
|
||||
follow = g.db.query(Follow).filter_by(user_id=v.id, target_id=target.id).one_or_none()
|
||||
|
|
Loading…
Reference in New Issue