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

Pleroma BE favs generate notifs on GS

See merge request !96
このコミットが含まれているのは:
lambadalambda 2017-08-18 06:10:53 -04:00
コミット 0c4f076765
1個のファイルの変更2行の追加1行の削除

ファイルの表示

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