Merge branch 'fix/pleromabe-favs-generate-notifs' into 'develop'

Pleroma BE favs generate notifs on GS

See merge request !96
This commit is contained in:
lambadalambda 2017-08-18 06:10:53 -04:00
commit 0c4f076765
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ export const statusType = (status) => {
return 'retweet'
}
if (typeof status.uri === 'string' && status.uri.match(/(fave|objectType=Favourite)/)) {
if ((typeof status.uri === 'string' && status.uri.match(/(fave|objectType=Favourite)/)) ||
(typeof status.text === 'string' && status.text.match(/favorited/))) {
return 'favorite'
}