]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/ChatLog.php
better classification
[alttp.git] / app / Models / ChatLog.php
index 41bdcc506653a1727e7e13af8f4cafab2df617be..063e8036485cdf5cc31ef793215db38f63a90b4c 100644 (file)
@@ -106,7 +106,7 @@ class ChatLog extends Model {
                $channel = Channel::firstWhere('twitch_chat', '=', $cname);
                if (!is_null($channel)) {
                        $this->channel()->associate($channel);
-                       if (now()->sub(5, 'minute')->isBefore($this->created_at)) {
+                       if (empty($this->twitch_category) && now()->sub(15, 'minute')->isBefore($this->created_at)) {
                                $this->twitch_category = $channel->twitch_category;
                        }
                }