This commit is contained in:
Aevann1 2021-09-25 19:43:45 +02:00
parent 023c3f8434
commit c5e2187683
3 changed files with 8 additions and 6 deletions

View file

@ -646,6 +646,8 @@ def unfollow_user(username, v):
target = get_user(username)
if target.id == 995: abort(403)
# check for existing follow
follow = g.db.query(Follow).options(lazyload('*')).filter_by(user_id=v.id, target_id=target.id).first()