applyTempBanPostHandler(_:)
func applyTempBanPostHandler(_ req: Request) async throws -> HTTPStatus
POST /moderate/user/ID/tempquarantine
Applies a temporary quarantine to the user given by ID. While quarantined, the user may not create or edit content,
but can still log in and read others’ content. They can still talk in private Seamail chats. They cannot edit their profile or change their avatar image.
Temp quarantines effectively change the user’s accessLevel to .quarantined
for the duration, after which the user’s accessLevel reverts
to what it was previously.
-
Declaration
Swift
struct TempBanFormData : Content