From 44fd2207fe19c4c5a5d80e6e0227c8af80631c0a Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 15 Dec 2021 09:48:34 +1100 Subject: [PATCH] Change add to slack image to inline svg --- src/Http/Controllers/SlackAppController.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Http/Controllers/SlackAppController.php b/src/Http/Controllers/SlackAppController.php index 35c24c6..c35ea20 100644 --- a/src/Http/Controllers/SlackAppController.php +++ b/src/Http/Controllers/SlackAppController.php @@ -18,7 +18,6 @@ class SlackAppController extends Controller private const slack_authorise_url = 'https://slack.com/oauth/v2/authorize'; private const slack_oauth_url = 'https://slack.com/api/oauth.v2.access'; - private const slack_button = 'https://platform.slack-edge.com/img/add_to_slack.png'; /** * Install this app - Slack Button @@ -26,10 +25,15 @@ class SlackAppController extends Controller public function button() { return sprintf( - 'Add to Slack', + '' + .'' + .'' + .'' + .'' + .'' + .'Add to Slack', self::slack_authorise_url, - http_build_query($this->parameters()), - self::slack_button,self::slack_button,self::slack_button + http_build_query($this->parameters()) ); }