diff options
Diffstat (limited to 'src/state/models')
-rw-r--r-- | src/state/models/feeds/notifications.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/state/models/feeds/notifications.ts b/src/state/models/feeds/notifications.ts index 5005f1d91..05e2ef0db 100644 --- a/src/state/models/feeds/notifications.ts +++ b/src/state/models/feeds/notifications.ts @@ -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 || |