fix: send in mocked profile data in follow routes as well

This commit is contained in:
Julian Lam
2024-01-05 15:39:45 -05:00
parent 2a77ae550b
commit 942a9b7e5c

View File

@@ -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}`);