[APP-702] Render Custom Feed likes properly (#980)
* render href for custom feed likes properly * fix custom feed text in push notification * fix custom feed accessibility title * fix lint
This commit is contained in:
parent
99aa38e3ca
commit
fe32730025
4 changed files with 25 additions and 4 deletions
|
@ -145,7 +145,7 @@ export class NotificationsFeedItemModel {
|
|||
}
|
||||
|
||||
get isLike() {
|
||||
return this.reason === 'like'
|
||||
return this.reason === 'like' && !this.isCustomFeedLike // the reason property for custom feed likes is also 'like'
|
||||
}
|
||||
|
||||
get isRepost() {
|
||||
|
@ -168,6 +168,12 @@ export class NotificationsFeedItemModel {
|
|||
return this.reason === 'follow'
|
||||
}
|
||||
|
||||
get isCustomFeedLike() {
|
||||
return (
|
||||
this.reason === 'like' && this.reasonSubject?.includes('feed.generator')
|
||||
)
|
||||
}
|
||||
|
||||
get needsAdditionalData() {
|
||||
if (
|
||||
this.isLike ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue