Also hide following in the AP API if requested
This commit is contained in:
parent
468f17936f
commit
17a5257fea
2 changed files with 7 additions and 1 deletions
5
app.py
5
app.py
|
@ -772,6 +772,11 @@ def following():
|
|||
|
||||
if is_api_request():
|
||||
_log_sig()
|
||||
if config.HIDE_FOLLOWING:
|
||||
return jsonify(
|
||||
**activitypub.simple_build_ordered_collection("following", [])
|
||||
)
|
||||
|
||||
return jsonify(
|
||||
**activitypub.build_ordered_collection(
|
||||
DB.activities,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue