Use the cache for the following page

This commit is contained in:
Thomas Sileo 2018-07-21 11:45:24 +02:00
parent 4a22ac12a8
commit 3ba14d938f

5
app.py
View file

@ -1685,10 +1685,7 @@ def following():
abort(404) abort(404)
following, older_than, newer_than = paginated_query(DB.activities, q) following, older_than, newer_than = paginated_query(DB.activities, q)
following = [ following = [doc["meta"]["object"] for doc in following]
(doc["remote_id"], get_backend().fetch_iri(doc["activity"]["object"]))
for doc in following
]
return render_template( return render_template(
"following.html", "following.html",
following_data=following, following_data=following,