Merge branch 'events.js' into 'dev'
add '{{REASON}}' substitution string for webhook See merge request Shinobi-Systems/Shinobi!145revert-b25c0d81
commit
1971955034
|
@ -61,6 +61,12 @@ module.exports = function(s,config,lang){
|
|||
newString = newString
|
||||
.replace(/{{CONFIDENCE}}/g,d.details.confidence)
|
||||
}
|
||||
if(newString.includes("REASON")) {
|
||||
if(d.details.reason) {
|
||||
newString = newString
|
||||
.replace(/{{REASON}}/g, d.details.reason)
|
||||
}
|
||||
}
|
||||
return newString
|
||||
}
|
||||
s.filterEvents = function(x,d){
|
||||
|
|
Loading…
Reference in New Issue