diff --git a/files/routes/users.py b/files/routes/users.py index 5e0bf08c0..b0c5ebfbe 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -843,7 +843,7 @@ def redditor_moment_redirect(username, v): @auth_required def followers(username, v): u = get_user(username, v=v) - users = g.db.query(User).join(User.followers) \ + users = g.db.query(User).join(User.following) \ .filter(Follow.user_id == User.id) \ .order_by(Follow.created_utc).all() return render_template("followers.html", v=v, u=u, users=users) @@ -852,7 +852,7 @@ def followers(username, v): @auth_required def following(username, v): u = get_user(username, v=v) - users = g.db.query(User).join(User.following) \ + users = g.db.query(User).join(User.followers) \ .filter(Follow.target_id == User.id) \ .order_by(Follow.created_utc).all() return render_template("following.html", v=v, u=u, users=users)