fsd
This commit is contained in:
parent
f69f929abb
commit
4c93cd63d9
2 changed files with 2 additions and 2 deletions
|
@ -653,7 +653,7 @@ def settings_block_user(v):
|
||||||
if not user: return {"error": "That user doesn't exist."}, 404
|
if not user: return {"error": "That user doesn't exist."}, 404
|
||||||
|
|
||||||
if user.unblockable:
|
if user.unblockable:
|
||||||
send_repeatable_notification(user.id, f"@{v.username} has tried to block you and failed because of your unblockable status!")
|
send_notification(user.id, f"@{v.username} has tried to block you and failed because of your unblockable status!")
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
return {"error": "This user is unblockable."}, 403
|
return {"error": "This user is unblockable."}, 403
|
||||||
|
|
||||||
|
|
|
@ -1059,7 +1059,7 @@ def unfollow_user(username, v):
|
||||||
target = get_user(username)
|
target = get_user(username)
|
||||||
|
|
||||||
if target.fish:
|
if target.fish:
|
||||||
send_repeatable_notification(target.id, f"@{v.username} has tried to unfollow you and failed because of your fish award!")
|
send_notification(target.id, f"@{v.username} has tried to unfollow you and failed because of your fish award!")
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
return {"error": "You can't unfollow this user!"}
|
return {"error": "You can't unfollow this user!"}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue