mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
fix: #9184 proper relative_path usage in topic thumbs.get
This commit is contained in:
@@ -101,7 +101,7 @@
|
|||||||
"nodebb-plugin-spam-be-gone": "0.7.7",
|
"nodebb-plugin-spam-be-gone": "0.7.7",
|
||||||
"nodebb-rewards-essentials": "0.1.4",
|
"nodebb-rewards-essentials": "0.1.4",
|
||||||
"nodebb-theme-lavender": "5.0.17",
|
"nodebb-theme-lavender": "5.0.17",
|
||||||
"nodebb-theme-persona": "10.3.17",
|
"nodebb-theme-persona": "10.3.18",
|
||||||
"nodebb-theme-slick": "1.3.7",
|
"nodebb-theme-slick": "1.3.7",
|
||||||
"nodebb-theme-vanilla": "11.3.10",
|
"nodebb-theme-vanilla": "11.3.10",
|
||||||
"nodebb-widget-essentials": "5.0.2",
|
"nodebb-widget-essentials": "5.0.2",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Thumbs.get = async function (tids) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const hasTimestampPrefix = /^\d+-/;
|
const hasTimestampPrefix = /^\d+-/;
|
||||||
const upload_url = nconf.get('upload_url');
|
const upload_url = nconf.get('relative_path') + nconf.get('upload_url');
|
||||||
const sets = tids.map(tid => `${validator.isUUID(String(tid)) ? 'draft' : 'topic'}:${tid}:thumbs`);
|
const sets = tids.map(tid => `${validator.isUUID(String(tid)) ? 'draft' : 'topic'}:${tid}:thumbs`);
|
||||||
const thumbs = await Promise.all(sets.map(set => getThumbs(set)));
|
const thumbs = await Promise.all(sets.map(set => getThumbs(set)));
|
||||||
let response = thumbs.map((thumbSet, idx) => thumbSet.map(thumb => ({
|
let response = thumbs.map((thumbSet, idx) => thumbSet.map(thumb => ({
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
{{{ each thumbs }}}
|
{{{ each thumbs }}}
|
||||||
<div class="media" data-id="{./id}" data-path="{./url}">
|
<div class="media" data-id="{./id}" data-path="{./url}">
|
||||||
<div class="media-left">
|
<div class="media-left">
|
||||||
<img class="media-object" src="{config.relative_path}{./url}" />
|
<img class="media-object" src="{./url}" />
|
||||||
</div>
|
</div>
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
Reference in New Issue
Block a user