make content optional parameter

This commit is contained in:
Ulf Gebhardt 2023-06-21 16:47:08 +02:00
parent ef7bc9283e
commit 373e915a14
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -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]')