fix: handles normalizeThumb without thumbnail
This commit is contained in:
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("//")) {
|
||||||
|
|||||||
Reference in new issue
Block a user