[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:
Ansh 2023-07-05 17:56:26 -07:00 committed by GitHub
parent 99aa38e3ca
commit fe32730025
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 4 deletions

View file

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