forked from AkkomaGang/akkoma-fe
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:
commit
0c4f076765
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue