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

Pleroma BE favs generate notifs on GS

See merge request !96
environments/dev/deployments/1
lambadalambda 7 years ago
commit 0c4f076765

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

Loading…
Cancel
Save