order user blocks by most recent first

master
Aevann1 2022-11-27 02:34:58 +02:00
parent ffb79a1bb2
commit 395e136cd4
1 changed files with 1 additions and 1 deletions

View File

@ -641,7 +641,7 @@ def blockers(username, v):
users = g.db.query(UserBlock, User).join(UserBlock, UserBlock.target_id == u.id) \ users = g.db.query(UserBlock, User).join(UserBlock, UserBlock.target_id == u.id) \
.filter(UserBlock.user_id == User.id) \ .filter(UserBlock.user_id == User.id) \
.order_by(UserBlock.created_utc).all() .order_by(UserBlock.created_utc.desc()).all()
return render_template("userpage/blockers.html", v=v, u=u, users=users) return render_template("userpage/blockers.html", v=v, u=u, users=users)
@app.get("/@<username>/following") @app.get("/@<username>/following")