[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:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user