fix prev commit

master
Aevann 2023-09-04 21:48:06 +03:00
parent 09ae8227ea
commit a113e15ba2
2 changed files with 3 additions and 2 deletions

View File

@ -894,12 +894,13 @@ def followers(v, username):
@auth_required
def following(v, username):
u = get_user(username, v=v)
if not (v.id == u.id or v.admin_level >= PERMS['USER_FOLLOWS_VISIBLE']):
abort(403)
page = get_page()
users = g.db.query(User).join(Follow, Follow.user_id == u.id) \
users = g.db.query(Follow, User).join(Follow, Follow.user_id == u.id) \
.filter(Follow.target_id == User.id)
total = users.count()

View File

@ -13,7 +13,7 @@
</tr>
</thead>
<tbody id="followers-table">
{% for user in users %}
{% for follow, user in users %}
<tr>
<td>{% include "user_in_table.html" %}</td>
<td {% if follow.created_utc > 1599343262 %}data-time="{{follow.created_utc}}"{% endif %}></td>