fix: #9113, wrong path separator used in thumbs.get

This commit is contained in:
Julian Lam
2020-12-18 14:57:40 -05:00
parent 2be396ff6e
commit da4f91186b

View File

@@ -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 }));