Don't add notification on self mention, (and fix that pesky pleroma vs gs delete bug)
This commit is contained in:
parent
5813541006
commit
c682a4b007
@ -131,7 +131,7 @@ export const statusType = (status) => {
|
|||||||
return 'favorite'
|
return 'favorite'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status.text.match(/deleted notice {{tag/)) {
|
if (status.text.match(/deleted notice {{tag/) || status.qvitter_delete_notice) {
|
||||||
return 'deletion'
|
return 'deletion'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -211,10 +211,12 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
|||||||
|
|
||||||
sortTimeline(mentions)
|
sortTimeline(mentions)
|
||||||
}
|
}
|
||||||
|
// Don't add notification for self-mention
|
||||||
|
if (status.user.id !== user.id) {
|
||||||
addNotification({ type: 'mention', status, action: status })
|
addNotification({ type: 'mention', status, action: status })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Decide if we should treat the status as new for this timeline.
|
// Decide if we should treat the status as new for this timeline.
|
||||||
let resultForCurrentTimeline
|
let resultForCurrentTimeline
|
||||||
|
Loading…
Reference in New Issue
Block a user