feat(main): several improvements, home page updates
This commit is contained in:
@@ -120,6 +120,17 @@ class AccountSuspensionService
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the reason for the user's suspension.
|
||||
*
|
||||
* @param User $user The user account to check
|
||||
* @return string|bool Reason for the suspension, false if not suspended
|
||||
*/
|
||||
public function getSuspensionReason(User $user): string|bool {
|
||||
return ($this->isSuspended($user)) ? $user->bans->reason : false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Checks whether an account is locked
|
||||
*
|
||||
|
Reference in New Issue
Block a user