mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: undefined uid when downloading posts
This commit is contained in:
@@ -104,7 +104,7 @@ userController.exportPosts = async function (req, res) {
|
|||||||
checkSchemaDifferences: false,
|
checkSchemaDifferences: false,
|
||||||
emptyFieldValue: '',
|
emptyFieldValue: '',
|
||||||
});
|
});
|
||||||
res.set('Content-Type', 'text/csv').set('Content-Disposition', 'attachment; filename="' + req.params.uid + '_posts.csv"').send(csv);
|
res.set('Content-Type', 'text/csv').set('Content-Disposition', 'attachment; filename="' + req.locals.uid + '_posts.csv"').send(csv);
|
||||||
};
|
};
|
||||||
|
|
||||||
userController.exportUploads = function (req, res, next) {
|
userController.exportUploads = function (req, res, next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user