Skip to content
Snippets Groups Projects
Commit f86a5dc8 authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

Merge branch 'issue-448-status-text-null' into 'develop'

#448 - fix timeline fetch error when status text is null

Closes #448

See merge request pleroma/pleroma-fe!700
parents e9b58f1a d7092879
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!700#448 - fix timeline fetch error when status text is null
Pipeline #9326 passed
......@@ -293,5 +293,5 @@ export const parseNotification = (data) => {
const isNsfw = (status) => {
const nsfwRegex = /#nsfw/i
return (status.tags || []).includes('nsfw') || !!status.text.match(nsfwRegex)
return (status.tags || []).includes('nsfw') || !!(status.text || '').match(nsfwRegex)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment