mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: use of removed URL to get post data
This commit is contained in:
@@ -5,7 +5,7 @@ define('topicThumbs', ['api', 'bootbox', 'uploader', 'benchpress', 'translator']
|
|||||||
|
|
||||||
Thumbs.get = id => api.get(`/topics/${id}/thumbs`, {});
|
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`, {
|
Thumbs.delete = (id, path) => api.del(`/topics/${id}/thumbs`, {
|
||||||
path: path,
|
path: path,
|
||||||
|
|||||||
Reference in New Issue
Block a user