mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Fix the follower page
This commit is contained in:
parent
66c80e1084
commit
11fcf2dfb0
1 changed files with 8 additions and 3 deletions
11
app.py
11
app.py
|
@ -1601,8 +1601,13 @@ def followers():
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
followers, older_than, newer_than = paginated_query(DB.activities, q)
|
raw_followers, older_than, newer_than = paginated_query(DB.activities, q)
|
||||||
followers = [get_backend().fetch_iri(doc["activity"]["actor"]) for doc in followers]
|
followers = []
|
||||||
|
for doc in raw_followers:
|
||||||
|
try:
|
||||||
|
followers.append(get_backend().fetch_iri(doc["activity"]["actor"]))
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
return render_template(
|
return render_template(
|
||||||
"followers.html",
|
"followers.html",
|
||||||
followers_data=followers,
|
followers_data=followers,
|
||||||
|
@ -1625,7 +1630,7 @@ def following():
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if config.HIDE_FOLLOWING:
|
if config.HIDE_FOLLOWING and not session.get("logged_in", False):
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
following, older_than, newer_than = paginated_query(DB.activities, q)
|
following, older_than, newer_than = paginated_query(DB.activities, q)
|
||||||
|
|
Loading…
Reference in a new issue