From 373e915a1472726f13a6a71a12b6c351958a469d Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 21 Jun 2023 16:47:08 +0200 Subject: [PATCH] make content optional parameter --- .../middleware/notifications/mentions/extractMentionedUsers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts b/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts index e7e23ace7..ccee18af9 100644 --- a/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts +++ b/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts @@ -1,6 +1,6 @@ import cheerio from 'cheerio' -export default (content) => { +export default (content?) => { if (!content) return [] const $ = cheerio.load(content) const userIds = $('a.mention[data-mention-id]')