mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
fix: bug where post associations are not shown when the directory is files
This commit is contained in:
@@ -46,7 +46,7 @@ uploadsController.get = async function (req, res, next) {
|
||||
});
|
||||
|
||||
// Add post usage info if in /files
|
||||
if (['/files', '/files/'].includes(req.query.dir)) {
|
||||
if (['files', '/files', '/files/'].includes(req.query.dir)) {
|
||||
const usage = await posts.uploads.getUsage(files);
|
||||
files.forEach((file, idx) => {
|
||||
file.inPids = usage[idx].map(pid => parseInt(pid, 10));
|
||||
|
||||
Reference in New Issue
Block a user