Browse Source

Update User model

Visman 2 years ago
parent
commit
600ff5d9da
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Models/User/User.php

+ 3 - 1
app/Models/User/User.php

@@ -405,7 +405,9 @@ class User extends DataModel
 
     public function fLog(): string
     {
-        return "id:{$this->id} gid:{$this->group_id} name:{$this->username}";
+        return $this->isGuest
+            ? "id:{$this->id} gid:{$this->group_id} guest"
+            : "id:{$this->id} gid:{$this->group_id} name:{$this->username}";
     }
 
     /**