aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <starpumadev@gmail.com>2019-03-22 13:15:11 -0400
committerdave <starpumadev@gmail.com>2019-03-22 13:15:11 -0400
commitd70928792d34b6da6ef3af3db2d9da7a269c5435 (patch)
treef9560eaf12bbfa9905c20202161eab6d924b54b3
parent66e60572bc5f3f35a902417547c1d38e3665fbb7 (diff)
#448 - fix timeline fetch error when status text is null
-rw-r--r--src/services/entity_normalizer/entity_normalizer.service.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js
index e831963a..57a6adf9 100644
--- 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)
}