This commit is contained in:
Barış Soner Uşaklı
2020-11-17 22:42:08 -05:00
parent fb567a7a33
commit 4e9b10ab76
4 changed files with 22 additions and 2 deletions

View File

@@ -175,6 +175,9 @@ async function pushToUids(uids, notification) {
notification['cta-type'] = notification.type;
}
let body = notification.bodyLong || '';
if (meta.config.removeEmailNotificationImages) {
body = body.replace(/<img[^>]*>/, '');
}
body = posts.relativeToAbsolute(body, posts.urlRegex);
body = posts.relativeToAbsolute(body, posts.imgRegex);
await async.eachLimit(uids, 3, function (uid, next) {