diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-27 18:54:17 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-27 18:54:17 +0100 |
| commit | ff93d1edeefae88cc1b9e9efe4f22c8787e5f792 (patch) | |
| tree | 222dfac266f8885c1fbb757c54833f5d52507197 /src | |
| parent | 4228f49e7b90bf60af32deb72b22b2bd108ec1c8 (diff) | |
Parse mastodon favorites.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/statuses.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index fee47558..cee249e2 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -62,7 +62,7 @@ export const updateTimestampsInStatuses = (statuses) => { }) } -const statusType = (status) => { +export const statusType = (status) => { if (status.is_post_verb) { return 'status' } @@ -71,7 +71,7 @@ const statusType = (status) => { return 'retweet' } - if (typeof status.uri === 'string' && status.uri.match(/fave/)) { + if (typeof status.uri === 'string' && status.uri.match(/(fave|objectType=Favourite)/)) { return 'favorite' } |
