mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Fix followers
This commit is contained in:
parent
9ff6aee0ae
commit
bf208d0422
1 changed files with 2 additions and 2 deletions
4
app.py
4
app.py
|
@ -1536,12 +1536,12 @@ def followers():
|
||||||
DB.activities,
|
DB.activities,
|
||||||
q=q,
|
q=q,
|
||||||
cursor=request.args.get("cursor"),
|
cursor=request.args.get("cursor"),
|
||||||
map_func=lambda doc: doc["activity"]["object"],
|
map_func=lambda doc: doc["activity"]["actor"],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
followers, older_than, newer_than = paginated_query(DB.activities, q)
|
followers, older_than, newer_than = paginated_query(DB.activities, q)
|
||||||
followers = [ACTOR_SERVICE.get(doc["activity"]["object"]) for doc in followers]
|
followers = [ACTOR_SERVICE.get(doc["activity"]["actor"]) for doc in followers]
|
||||||
return render_template(
|
return render_template(
|
||||||
"followers.html",
|
"followers.html",
|
||||||
followers_data=followers,
|
followers_data=followers,
|
||||||
|
|
Loading…
Reference in a new issue