Changeset 8180
- Timestamp:
- 02/02/2019 12:48:33 PM (6 years ago)
- Location:
- sites/trunk/common/includes/slack/trac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/trac/commit-handler.php
r8177 r8180 47 47 48 48 $text = "*$username <$url|$revision> by $author*\n$log"; 49 $fallback = "$ revision by $author: $log";49 $fallback = "$username $revision by $author"; 50 50 51 51 $this->send->set_username( $username ); … … 55 55 'text' => $text, 56 56 'fallback' => $fallback, 57 'mrkdwn_in' => array( 'text' , 'fallback'),57 'mrkdwn_in' => array( 'text' ), 58 58 ) ); 59 59 } -
sites/trunk/common/includes/slack/trac/commit.php
r8179 r8180 28 28 29 29 $username = $this->trac->get_commit_username(); 30 $url = $this->get_url();31 30 $revision = 'r' . $this->id; 32 31 $author = $this->author; … … 35 34 $attachment = []; 36 35 37 $attachment['text'] = "*$username <$url|$revision> by $author*\n$message"; 38 $attachment['fallback'] = "$revision by $author: $message"; 39 $attachment['mrkdwn_in'] = [ 'text', 'fallback' ]; 36 $attachment['title'] = "$username $revision"; 37 $attachment['title_link'] = $this->get_url(); 38 39 $attachment['author_name'] = $author; 40 $attachment['author_icon'] = sprintf( 'https://wordpress.org/grav-redirect.php?user=%s&s=32', $author ); 41 42 $attachment['text'] = $message; 43 $attachment['fallback'] = "$username $revision by $author"; 44 $attachment['mrkdwn_in'] = [ 'text' ]; 40 45 41 46 $attachment['ts'] = $this->created;
Note: See TracChangeset
for help on using the changeset viewer.