mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36: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,
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user