#448 - fix timeline fetch error when status text is null
This commit is contained in:
parent
66e60572bc
commit
d70928792d
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user