下書き記事

This commit is contained in:
2025-12-29 17:00:55 +09:00
parent 863bdabf59
commit 113e0a00fb
4 changed files with 5 additions and 4 deletions

View File

@@ -302,8 +302,8 @@ function namecolor(\stdClass $userData): string {
$showname = $userData->displayname ?: $userData->username;
$color = "<span style=\"{$style}\">{$showname}</span>";
if ($userData->role & (Roles::ADMIN | Roles::STAFF)) $color .= "<span style=\"font-size: x-small; background: #10c074; border: 1px solid #fcfcfc; border-radius: 10px; padding: 0 0.5em;\">✓</span>";
if ($userData->role & (Roles::ADMIN | Roles::STAFF))
$color .= "<span style=\"font-size: x-small; background: #10c074; border: 1px solid #fcfcfc; border-radius: 10px; padding: 0 0.5em;\">✓</span>";
$suffix = $userData->gender === 0 ? 'くん' : ($userData->gender === 1 ? 'ちゃん' : 'さん');
return $color.$suffix;