1
0
Fork 0
mirror of https://git.youjo.love/youjo/youjo-fe.git synced 2025-03-29 21:01:46 +01:00

- fix timeline fetch error when status text is null

This commit is contained in:
dave 2019-03-22 13:15:11 -04:00
parent 66e60572bc
commit d70928792d

View file

@ -293,5 +293,5 @@ export const parseNotification = (data) => {
const isNsfw = (status) => { const isNsfw = (status) => {
const nsfwRegex = /#nsfw/i const nsfwRegex = /#nsfw/i
return (status.tags || []).includes('nsfw') || !!status.text.match(nsfwRegex) return (status.tags || []).includes('nsfw') || !!(status.text || '').match(nsfwRegex)
} }