From 942a9b7e5c79b37bded6cfa599aa8d6cd93f322a Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 5 Jan 2024 15:39:45 -0500 Subject: [PATCH] fix: send in mocked profile data in follow routes as well --- src/controllers/activitypub/profiles.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/activitypub/profiles.js b/src/controllers/activitypub/profiles.js index 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}`);