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