Fixed user colour not being correct in chat.

This commit is contained in:
flash 2020-06-07 22:12:58 +00:00
parent e99625c2ad
commit bd6af0a7c7

View file

@ -277,7 +277,7 @@ final class SockChatHandler extends Handler {
'success' => true,
'user_id' => $userInfo->getId(),
'username' => $userInfo->getUsername(),
'colour_raw' => $userInfo->getColourRaw(),
'colour_raw' => $userInfo->getColour()->getRaw(),
'hierarchy' => $userInfo->getRank(),
'is_silenced' => date('c', $userInfo->isSilenced() || $userInfo->isBanned() ? ($userInfo->isActiveWarningPermanent() ? strtotime('10 years') : $userInfo->getActiveWarningExpiration()) : 0),
'perms' => $perms,