UPDATE: Added user_id into session

BUGFIX: Fixed typo
This commit is contained in:
JustIceO7
2025-01-31 03:58:11 +00:00
parent 1036494b7d
commit b5d9756766
2 changed files with 7 additions and 3 deletions

View File

@@ -32,9 +32,9 @@ def user_unfollow(followed_username):
"""
user_id = session.get("user_id")
followed_id = get_user_id(followed_username)
response = unfollow(user_id, followed_id)
status = unfollow(user_id, followed_id)
status = True if response else False
status = True if status else False
return jsonify({"status": status})
@login_required