Node.js based forum software built for the modern web
fix: use of removed URL to get post data
Julian Lam36e8d251c84a
diff --git a/public/src/modules/topicThumbs.js b/public/src/modules/topicThumbs.jsindex f7fd7dfc54..cb8f4250fc 100644--- a/public/src/modules/topicThumbs.js+++ b/public/src/modules/topicThumbs.js@@ -5,7 +5,7 @@ define('topicThumbs', ['api', 'bootbox', 'uploader', 'benchpress', 'translator']Thumbs.get = id => api.get(`/topics/${id}/thumbs`, {});- Thumbs.getByPid = pid => fetch(`${config.relative_path}/api/post/pid/${pid}`).then(res => res.json()).then(res => Thumbs.get(res.tid));+ Thumbs.getByPid = pid => api.get(`/posts/${pid}`, {}).then(post => Thumbs.get(post.tid));Thumbs.delete = (id, path) => api.del(`/topics/${id}/thumbs`, {path: path,