From ff93d1edeefae88cc1b9e9efe4f22c8787e5f792 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sun, 27 Nov 2016 18:54:17 +0100 Subject: Parse mastodon favorites. --- src/modules/statuses.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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' } -- cgit v1.2.3-70-g09d2