From da4f91186bf9a46abcbb65a5bfa1585f5f021c63 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 18 Dec 2020 14:57:40 -0500 Subject: [PATCH] fix: #9113, wrong path separator used in thumbs.get --- src/topics/thumbs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/thumbs.js b/src/topics/thumbs.js index e8709a46b4..a894e12810 100644 --- a/src/topics/thumbs.js +++ b/src/topics/thumbs.js @@ -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 }));