X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=app%2FModels%2FChannel.php;h=46155cda710d1c5d0de970a692d84a8fce889924;hb=ebdf8e5f6761de2abd85b01096a67dee62d7d4aa;hp=5c7ae70c0e95ebfec714052becfc28580dc1f354;hpb=1d3c8c6a96fc45d839f0e3719baca790059d189f;p=alttp.git diff --git a/app/Models/Channel.php b/app/Models/Channel.php index 5c7ae70..46155cd 100644 --- a/app/Models/Channel.php +++ b/app/Models/Channel.php @@ -32,10 +32,9 @@ class Channel extends Model { } public function randomOfClass($class) { - $line = $this->queryChatlog() + return $this->queryChatlog() ->where('classification', '=', $class) ->first(); - return $line ? $line->text_content : ''; } public function queryChatlog() {