Fix mention-creation and implement mentions in notifications
This commit is contained in:
parent
1a11c13fce
commit
ae522c86fe
3 changed files with 22 additions and 4 deletions
|
@ -81,6 +81,10 @@ export class NotificationsViewItemModel implements GroupedNotification {
|
|||
return this.reason === 'trend'
|
||||
}
|
||||
|
||||
get isMention() {
|
||||
return this.reason === 'mention'
|
||||
}
|
||||
|
||||
get isReply() {
|
||||
return this.reason === 'reply'
|
||||
}
|
||||
|
@ -94,7 +98,13 @@ export class NotificationsViewItemModel implements GroupedNotification {
|
|||
}
|
||||
|
||||
get needsAdditionalData() {
|
||||
if (this.isUpvote || this.isRepost || this.isTrend || this.isReply) {
|
||||
if (
|
||||
this.isUpvote ||
|
||||
this.isRepost ||
|
||||
this.isTrend ||
|
||||
this.isReply ||
|
||||
this.isMention
|
||||
) {
|
||||
return !this.additionalPost
|
||||
}
|
||||
return false
|
||||
|
@ -124,7 +134,7 @@ export class NotificationsViewItemModel implements GroupedNotification {
|
|||
return
|
||||
}
|
||||
let postUri
|
||||
if (this.isReply) {
|
||||
if (this.isReply || this.isMention) {
|
||||
postUri = this.uri
|
||||
} else if (this.isUpvote || this.isRead || this.isTrend) {
|
||||
postUri = this.subjectUri
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue