Add an config item to hide following

This commit is contained in:
Thomas Sileo
2018-07-17 23:42:21 +02:00
parent c01cc39e20
commit ac5f349d0f
3 changed files with 6 additions and 1 deletions

3
app.py
View File

@@ -1618,6 +1618,9 @@ def following():
)
)
if config.HIDE_FOLLOWING:
abort(404)
following, older_than, newer_than = paginated_query(DB.activities, q)
following = [
(doc["remote_id"], get_backend().fetch_iri(doc["activity"]["object"]))