mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: send in mocked profile data in follow routes as well
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user