forked from MarseyWorld/MarseyWorld
fsd
parent
952fdec513
commit
9499cde2aa
|
@ -653,7 +653,7 @@ def settings_block_user(v):
|
|||
if not user: return {"error": "That user doesn't exist."}, 404
|
||||
|
||||
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()
|
||||
return {"error": "This user is unblockable."}, 403
|
||||
|
||||
|
|
|
@ -1059,7 +1059,7 @@ def unfollow_user(username, v):
|
|||
target = get_user(username)
|
||||
|
||||
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()
|
||||
return {"error": "You can't unfollow this user!"}
|
||||
|
||||
|
|
Loading…
Reference in New Issue