make working event filter

This commit is contained in:
Mateusz Pieła 2021-04-27 09:43:13 +02:00
parent 0b96c27957
commit 096f91cd74
4 changed files with 42 additions and 3 deletions

View file

@ -32,6 +32,20 @@ class webhook extends core
return $this->json->text;
}
public function getEventFilter()
{
if(isset($this->json->event) && $this->json->event)
{
return $this->json->event;
}
elseif(isset($_GET['event']) && $_GET['event'])
{
return $_GET['event'];
}
return false;
}
}
?>