fix: handles normalizeThumb without thumbnail

This commit is contained in:
Sebastian Rindom committed 2021-02-15 14:07:39 +01:00
1 parent 0cc2ccd3b2
commit 93f68126bf
1 file changed
+4
@@ -647,6 +647,10 @@ class SendGridService extends NotificationService {
} }
normalizeThumbUrl_(url) { normalizeThumbUrl_(url) {
if (!url) {
return null
}
if (url.startsWith("http")) { if (url.startsWith("http")) {
return url return url
} else if (url.startsWith("//")) { } else if (url.startsWith("//")) {