Add regex to check if you're the one being followed before adding notification.
This commit is contained in:
parent
cbe652f2d9
commit
3d9d59915b
@ -259,7 +259,10 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
'follow': (status) => {
|
'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 })
|
addNotification({ type: 'follow', status: status, action: status })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'deletion': (deletion) => {
|
'deletion': (deletion) => {
|
||||||
const uri = deletion.uri
|
const uri = deletion.uri
|
||||||
|
Loading…
Reference in New Issue
Block a user