forked from AkkomaGang/akkoma-fe
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
This commit is contained in:
commit
f86a5dc804
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue