Node.js based forum software built for the modern web
fix: send in mocked profile data in follow routes as well
Julian Lam942a9b7e5c79
diff --git a/src/controllers/activitypub/profiles.js b/src/controllers/activitypub/profiles.jsindex e641af3685..21fbd68073 100644--- a/src/controllers/activitypub/profiles.js+++ b/src/controllers/activitypub/profiles.js@@ -25,7 +25,9 @@ controller.getFollow = async function (tpl, name, req, res) {const page = parseInt(req.query.page, 10) || 1;- const payload = {};+ const payload = {+ ...await mockProfile(actor, req.uid),+ };payload.title = `[[pages:${tpl}, ${username}]]`;const collection = await get(`${actor[name]}?page=${page}`);