parent
feaf3068f8
commit
be6bbabd0e
@ -0,0 +1,61 @@
|
|||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- users
|
||||||
|
summary: mute a user
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: uid
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
required: true
|
||||||
|
description: uid of the user to mute
|
||||||
|
example: 2
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
until:
|
||||||
|
type: number
|
||||||
|
description: UNIX timestamp of the mute expiry
|
||||||
|
example: 1585775608076
|
||||||
|
reason:
|
||||||
|
type: string
|
||||||
|
example: the reason for the mute
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: successfully muted user
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
status:
|
||||||
|
$ref: ../../../components/schemas/Status.yaml#/Status
|
||||||
|
response:
|
||||||
|
type: object
|
||||||
|
delete:
|
||||||
|
tags:
|
||||||
|
- users
|
||||||
|
summary: unmute a user
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: uid
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
required: true
|
||||||
|
description: uid of the user to unmute
|
||||||
|
example: 2
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: successfully unmuted user
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
status:
|
||||||
|
$ref: ../../../components/schemas/Status.yaml#/Status
|
||||||
|
response:
|
||||||
|
type: object
|
@ -0,0 +1,27 @@
|
|||||||
|
<form class="form">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="length">[[admin/manage/users:temp-ban.length]]</label>
|
||||||
|
<input class="form-control" id="length" name="length" type="number" min="0" value="1" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-8">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="reason">[[admin/manage/users:temp-ban.reason]]</label>
|
||||||
|
<input type="text" class="form-control" id="reason" name="reason" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-4 text-center">
|
||||||
|
<div class="form-group units">
|
||||||
|
<label>[[admin/manage/users:temp-ban.hours]]</label>
|
||||||
|
<input type="radio" name="unit" value="0" checked />
|
||||||
|
|
||||||
|
<label>[[admin/manage/users:temp-ban.days]]</label>
|
||||||
|
<input type="radio" name="unit" value="1" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
Loading…
Reference in New Issue