From 125ddec60b3202819b0e19e450ffc1a578b67e0a Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 3 Oct 2022 21:04:32 -0400 Subject: [PATCH] Shortcircuit notification generation if there is no diff to render --- server/queues/processors/NotificationsProcessor.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/queues/processors/NotificationsProcessor.ts b/server/queues/processors/NotificationsProcessor.ts index 2f7df8c18..a3175a8d8 100644 --- a/server/queues/processors/NotificationsProcessor.ts +++ b/server/queues/processors/NotificationsProcessor.ts @@ -126,6 +126,10 @@ export default class NotificationsProcessor extends BaseProcessor { includeTitle: false, centered: false, }); + if (!content) { + return; + } + content = await DocumentHelper.attachmentsToSignedUrls( content, event.teamId,