commit: f86a5dc80421f496a893efaa98f12f831da0adcb
parent: e9b58f1af7d3f67b57757855422617125f348ebe
Author: Shpuld Shpludson <shp@cock.li>
Date: Sat, 23 Mar 2019 14:17:47 +0000
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
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js
@@ -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)
}