diff options
| author | dave <starpumadev@gmail.com> | 2019-03-22 13:15:11 -0400 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-03-22 13:15:11 -0400 |
| commit | d70928792d34b6da6ef3af3db2d9da7a269c5435 (patch) | |
| tree | f9560eaf12bbfa9905c20202161eab6d924b54b3 /src/services/entity_normalizer/entity_normalizer.service.js | |
| parent | 66e60572bc5f3f35a902417547c1d38e3665fbb7 (diff) | |
#448 - fix timeline fetch error when status text is null
Diffstat (limited to 'src/services/entity_normalizer/entity_normalizer.service.js')
| -rw-r--r-- | src/services/entity_normalizer/entity_normalizer.service.js | 2 |
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) } |
