forked from AkkomaGang/akkoma-fe
Add regex to check if you're the one being followed before adding notification.
This commit is contained in:
parent
cbe652f2d9
commit
3d9d59915b
1 changed files with 4 additions and 1 deletions
|
@ -259,7 +259,10 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
|||
}
|
||||
},
|
||||
'follow': (status) => {
|
||||
addNotification({ type: 'follow', status: status, action: 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