From 88db83883037a7c39211388bbff390cc541b3be7 Mon Sep 17 00:00:00 2001 From: Niko Date: Wed, 16 Feb 2022 18:39:36 +0100 Subject: [PATCH] Add "manuallyApprovesFollowers": true (always) to /u/:actor json --- api/src/activity/actor.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/src/activity/actor.js b/api/src/activity/actor.js index 4e3d826..a96bdae 100644 --- a/api/src/activity/actor.js +++ b/api/src/activity/actor.js @@ -14,5 +14,11 @@ module.exports = { } next() }) + apex.net.actor.get.splice(apex.net.actor.get.length-1, 0, + async (req, res, next) => { + res.locals.apex.target + .manuallyApprovesFollowers = true + next() + }) }, }