diff options
| author | lambda <pleromagit@rogerbraun.net> | 2017-11-13 09:10:44 +0000 |
|---|---|---|
| committer | lambda <pleromagit@rogerbraun.net> | 2017-11-13 09:10:44 +0000 |
| commit | d6478068f87689b981ed1e5b54e28433c9f89ef6 (patch) | |
| tree | 0e42be99b102f84bb70c288ccf854dfbf0bf3c3f /src/modules/statuses.js | |
| parent | f74ad6d3e1cbfa3d855bdd993d2d6a060b8deb2d (diff) | |
| parent | 46f23b7de7a5e27dd4f9f13f063d263fbb1ec85d (diff) | |
Merge branch 'feature/streaming-posts' into 'develop'
Streaming posts
See merge request pleroma/pleroma-fe!151
Diffstat (limited to 'src/modules/statuses.js')
| -rw-r--r-- | src/modules/statuses.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 884ba0ef..6d4b4843 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -131,7 +131,7 @@ export const statusType = (status) => { return 'favorite' } - if (status.text.match(/deleted notice {{tag/)) { + if (status.text.match(/deleted notice {{tag/) || status.qvitter_delete_notice) { return 'deletion' } @@ -211,8 +211,10 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us sortTimeline(mentions) } - - addNotification({ type: 'mention', status, action: status }) + // Don't add notification for self-mention + if (status.user.id !== user.id) { + addNotification({ type: 'mention', status, action: status }) + } } } |
