|
@@ 99-103 (lines=5) @@
|
| 96 |
|
$parts = explode(':', $notification['message']); |
| 97 |
|
$issueNumber = (int) trim($parts[1]); |
| 98 |
|
$result = $this->queryForge('issues/' . $issueNumber); |
| 99 |
|
if ($result) { |
| 100 |
|
$msg = '*Hi <@' . $user . '>, <@' . $notification['from_user'] . '>' |
| 101 |
|
. ' ask you to look at this issue:*'; |
| 102 |
|
$this->sendResponse($msg . "\n" . $this->buildIssueMessage($result->issue), $user); |
| 103 |
|
} |
| 104 |
|
} else { |
| 105 |
|
$msg = '*Hi <@' . $user . '>, here is a message from <@' . $notification['from_user'] . '>' |
| 106 |
|
. ' for you:*'; |
|
@@ 104-108 (lines=5) @@
|
| 101 |
|
. ' ask you to look at this issue:*'; |
| 102 |
|
$this->sendResponse($msg . "\n" . $this->buildIssueMessage($result->issue), $user); |
| 103 |
|
} |
| 104 |
|
} else { |
| 105 |
|
$msg = '*Hi <@' . $user . '>, here is a message from <@' . $notification['from_user'] . '>' |
| 106 |
|
. ' for you:*'; |
| 107 |
|
$this->sendResponse($msg . "\n" . $notification['message'], $user); |
| 108 |
|
} |
| 109 |
|
$now = new \DateTime(); |
| 110 |
|
$now->setTimestamp(time()); |
| 111 |
|
$this->getDatabaseConnection()->update( |