mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
fix: a derp
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = function (Topics) {
|
|||||||
|
|
||||||
Topics.resizeAndUploadThumb = async function (data) {
|
Topics.resizeAndUploadThumb = async function (data) {
|
||||||
// Handle protocol-relative URLs
|
// Handle protocol-relative URLs
|
||||||
if (data.thumb.startsWith('//')) {
|
if (data.thumb && data.thumb.startsWith('//')) {
|
||||||
data.thumb = `${nconf.get('secure') ? 'https' : 'http'}:${data.thumb}`;
|
data.thumb = `${nconf.get('secure') ? 'https' : 'http'}:${data.thumb}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user