forked from AkkomaGang/akkoma-fe
Merge branch 'fix/check-if-follow-notif-matches-self' into 'develop'
Add regex to check if you're the one being followed before adding notification. See merge request !102
This commit is contained in:
commit
5a1ad84092
1 changed files with 4 additions and 1 deletions
|
@ -259,7 +259,10 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
|||
}
|
||||
},
|
||||
'follow': (status) => {
|
||||
let re = new RegExp(`started following ${user.name} \\(${user.statusnet_profile_url}\\)`)
|
||||
if (status.text.match(re)) {
|
||||
addNotification({ type: 'follow', status: status, action: status })
|
||||
}
|
||||
},
|
||||
'deletion': (deletion) => {
|
||||
const uri = deletion.uri
|
||||
|
|
Loading…
Reference in a new issue