mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
fix: #9113, wrong path separator used in thumbs.get
This commit is contained in:
@@ -37,7 +37,7 @@ Thumbs.get = async function (tids) {
|
||||
let response = thumbs.map((thumbSet, idx) => thumbSet.map(thumb => ({
|
||||
id: tids[idx],
|
||||
name: path.basename(thumb),
|
||||
url: thumb.startsWith('http') ? thumb : path.join(upload_url, thumb),
|
||||
url: thumb.startsWith('http') ? thumb : path.posix.join(upload_url, thumb),
|
||||
})));
|
||||
|
||||
({ thumbs: response } = await plugins.hooks.fire('filter:topics.getThumbs', { tids, thumbs: response }));
|
||||
|
||||
Reference in New Issue
Block a user