Skip to content

Commit de6fd34

Browse files
Provide example of direct Slack linking for chatLinker
1 parent 852a310 commit de6fd34

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

php-config/Laddr.config.d/chat.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
/*
44
Laddr::$chatLinker = function($channel = null) {
5-
$url = '/chat';
6-
7-
if ($channel) {
8-
$url .= '?channel=' . urlencode($channel);
9-
}
10-
11-
return $url;
5+
return 'https://mySlackOrg.slack.com/messages/'.urlencode($channel ?: 'general').'/';
126
};
137
*/

0 commit comments

Comments
 (0)