diff options
| author | Shpuld Shpuldson <shpuld@gmail.com> | 2017-08-18 12:38:47 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shpuld@gmail.com> | 2017-08-18 12:38:47 +0300 |
| commit | 1136db24cc24ddd107de42ec297e2983704885e2 (patch) | |
| tree | ff92917052fba42af705f381ec39fd1653a375ee /src | |
| parent | 052befa5819eb81895dd43b3ad16dda913859a5e (diff) | |
Fix issue with trying to match() on undefined
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/statuses.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 68e71fcb..c7c3d016 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -97,7 +97,8 @@ export const statusType = (status) => { return 'retweet' } - if ((typeof status.uri === 'string' && status.uri.match(/(fave|objectType=Favourite)/)) || status.text.match(/favorited/)) { + if ((typeof status.uri === 'string' && status.uri.match(/(fave|objectType=Favourite)/)) || + (typeof status.text === 'string' && status.text.match(/favorited/))) { return 'favorite' } |
