app/Middlewares/GoogleSearchMiddleware.php 1 location
|
@@ 29-33 (lines=5) @@
|
| 26 |
|
$hasMentions = count($message->mentions); |
| 27 |
|
$mention = null; |
| 28 |
|
|
| 29 |
|
if ($hasMentions) { |
| 30 |
|
$mention = $message->mentions[0]->login === \Auth::user()->login |
| 31 |
|
? $message->user |
| 32 |
|
: $message->mentions[0]; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
$answer = trim($matches[1]) && $mention |
| 36 |
|
? \Lang::get('google.personal', [ |
app/Middlewares/MarkdownAdviserMiddleware.php 1 location
|
@@ 26-30 (lines=5) @@
|
| 23 |
|
$hasMentions = count($message->mentions); |
| 24 |
|
$mention = null; |
| 25 |
|
|
| 26 |
|
if ($hasMentions) { |
| 27 |
|
$mention = $message->mentions[0]->login === \Auth::user()->login |
| 28 |
|
? $message->user |
| 29 |
|
: $message->mentions[0]; |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
$answer = $mention |
| 33 |
|
? \Lang::get('markdown.personal', [ |