From 368a05d8675b0b2a913edf742a9eb2cd308fe7b5 Mon Sep 17 00:00:00 2001 From: mahula Date: Sun, 8 Sep 2024 08:43:06 +0200 Subject: [PATCH] adapt cheerio import to package update --- backend/src/middleware/hashtags/extractHashtags.ts | 2 +- .../middleware/notifications/mentions/extractMentionedUsers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/middleware/hashtags/extractHashtags.ts b/backend/src/middleware/hashtags/extractHashtags.ts index 7570802af..670673bf4 100644 --- a/backend/src/middleware/hashtags/extractHashtags.ts +++ b/backend/src/middleware/hashtags/extractHashtags.ts @@ -1,4 +1,4 @@ -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { exec, build } from 'xregexp/xregexp-all.js' // formats of a Hashtag: // https://en.wikipedia.org/w/index.php?title=Hashtag&oldid=905141980#Style diff --git a/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts b/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts index ccee18af9..ff80bb77a 100644 --- a/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts +++ b/backend/src/middleware/notifications/mentions/extractMentionedUsers.ts @@ -1,4 +1,4 @@ -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' export default (content?) => { if (!content) return []