Parse mastodon favorites.

This commit is contained in:
Roger Braun 2016-11-27 18:54:17 +01:00
parent 4228f49e7b
commit ff93d1edee
2 changed files with 18 additions and 3 deletions

View file

@ -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'
}