diff --git a/app/Models/Comment.php b/app/Models/Comment.php index 24ae03f..a103d29 100644 --- a/app/Models/Comment.php +++ b/app/Models/Comment.php @@ -25,6 +25,11 @@ class Comment { if (json_decode($user->i('content'), true)['aboutlive']['value'] != null) { echo ' '.htmlspecialchars(json_decode($user->i('content'), true)['aboutlive']['value']); } + if ($user->i('admin') === 1) { + $admintype = ' · Администратор сервера'; + } else if ($user->i('admin') === 2) { + $admintype = ' · Фотомодератор'; + } if ((int)Vote::countcommrates($this->c['id'], -1) >= 1) { $commclass = 'pro'; $symb = '+'; @@ -35,7 +40,7 @@ class Comment { $commclass = ''; } echo ' -