Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -55,7 +55,7 @@ class _webhooks extends \IPS\Task
|
||||
\IPS\Output::i()->parseFileObjectUrls( $fire['data'] );
|
||||
$fire['data'] = \IPS\Output::i()->replaceEmojiWithImages( $fire['data'] );
|
||||
|
||||
$response = \IPS\Http\Url::external( $webhooks[ $fire['webhook'] ]['url'] )
|
||||
$request = \IPS\Http\Url::external( $webhooks[ $fire['webhook'] ]['url'] )
|
||||
->request()
|
||||
->setHeaders(
|
||||
[
|
||||
@@ -63,8 +63,14 @@ class _webhooks extends \IPS\Task
|
||||
'Webhook-Event' => $fire['event'],
|
||||
'Content-Type' => $webhooks[ $fire['webhook'] ]['content_type']
|
||||
]
|
||||
)
|
||||
->login( $webhooks[ $fire['webhook'] ]['api_key'], '' )->post( $fire['data'] );
|
||||
);
|
||||
|
||||
if( !empty( $webhooks[ $fire['webhook'] ]['api_key'] ) )
|
||||
{
|
||||
$request = $request->login( $webhooks[ $fire['webhook'] ]['api_key'], '' );
|
||||
}
|
||||
|
||||
$response = $request->post( $fire['data'] );
|
||||
|
||||
if ( \IPS\Settings::i()->webhook_logs_success )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user