mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
fix(app,api): kick reasons, blocked counts and locale fallbacks (#3334)
This commit is contained in:
1 parent
a5c1362f4a
commit
4db13b0375
157 files changed
+3080
-1995
No files matched your search
@@ -161,8 +161,6 @@ The guild state [Update guild](#update-guild) reads back after applying the requ
|
||||
| member_count | integer | The recorded member count |
|
||||
| nsfw_level | integer | The [NSFW level](/http-api/guilds/#nsfw-levels) |
|
||||
|
||||
The response schema also declares `nsfw`, `content_warning_level`, and `content_warning_text`, which this object never has. Read them back with [Get guild](#get-guild) instead.
|
||||
|
||||
## Admin guild expression object
|
||||
|
||||
A custom emoji or a sticker of a guild, with a resolvable media URL. The listings return the same shape.
|
||||
|
||||
@@ -609,8 +609,6 @@ There is no retry key. A repeated request with the same values creates a second
|
||||
| 500 | [error response](/http-api/#error-response) | Unexpected internal failure occurs |
|
||||
| 503 | [error response](/http-api/#error-response) | The instance is at its in-flight request ceiling |
|
||||
|
||||
The response schema also declares the [MFA challenge response](#mfa-challenge-response), which registration never returns, because a new account has no second factor.
|
||||
|
||||
### Side effects
|
||||
|
||||
The operation applies the instance's registration, email-domain, breached-password, and regional policies before creating the account. It records the accepted terms and privacy policy, authorises the registering client IP address, and sends an email verification message when the instance sends email. An instance that sends no email marks the address verified at creation instead.
|
||||
@@ -1208,8 +1206,6 @@ Fluxer checks the replacement password against the same breached-password corpus
|
||||
| 500 | [error response](/http-api/#error-response) | Unexpected internal failure occurs |
|
||||
| 503 | [error response](/http-api/#error-response) | The instance is at its in-flight request ceiling |
|
||||
|
||||
The response schema also declares the [MFA challenge response](#mfa-challenge-response), which this operation never returns, because the reversion clears every second factor.
|
||||
|
||||
### Side effects
|
||||
|
||||
The previous email address becomes verified and the replacement password becomes the account password. All other sessions, second factors and authorised IP addresses are removed. Only the requesting IP address remains authorised.
|
||||
|
||||
@@ -518,8 +518,6 @@ Only an embed the unfurler builds from a link has a provider. A rich embed input
|
||||
| name | string | Provider name |
|
||||
| url? | string | Provider URL |
|
||||
|
||||
The response schema also declares `icon_url` and `proxy_icon_url`, which a provider never has.
|
||||
|
||||
## Allowed mentions object
|
||||
|
||||
An allowed mentions object selects which mentions written in the message text become active mentions, meaning the ones that notify a user or role.
|
||||
|
||||
@@ -833,7 +833,7 @@ A notice whose walk resolves to the `child_safety` [category](#report-categories
|
||||
| Field | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| message_link<sup>1</sup> | string | The link to the reported message (1-2048 characters) |
|
||||
| reported_user_tag?<sup>2</sup> | string | The message author's tag in `username#1234` form (3-37 characters) |
|
||||
| reported_user_tag?<sup>2</sup> | string | The message author's tag in `username#1234` form, or the bare username on an instance without user tags (1-37 characters) |
|
||||
|
||||
<sup>1</sup> Parsed as an absolute URL whose path is `/channels/<guild_id>/<channel_id>/<message_id>`, with `@me` in place of the guild ID for a direct message or group DM. Fluxer ignores the origin
|
||||
|
||||
@@ -846,7 +846,7 @@ The link must name a message that exists, in the channel it names, and in the gu
|
||||
| Field | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| user_id?<sup>1</sup> | snowflake | The ID of the reported user |
|
||||
| user_tag?<sup>1</sup> | string | The reported user's tag in `username#1234` form (3-37 characters) |
|
||||
| user_tag?<sup>1</sup> | string | The reported user's tag in `username#1234` form, or the bare username on an instance without user tags (1-37 characters) |
|
||||
|
||||
<sup>1</sup> Supply at least one of the two. A body that supplies neither returns 400 `INVALID_FORM_BODY`, and an ID or tag that resolves to no account returns 404 `UNKNOWN_USER`
|
||||
|
||||
|
||||
@@ -334,9 +334,7 @@ A missing, malformed, forged, or expired token and a token for another harvest a
|
||||
|
||||
| Field | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| token<sup>1</sup> | string | Signed download token issued with the download URL |
|
||||
|
||||
<sup>1</sup> Required, although the request schema does not declare it. A request without it returns 404
|
||||
| token | string | Signed download token issued with the download URL (1-2,048 characters) |
|
||||
|
||||
### Request headers
|
||||
|
||||
|
||||
Reference in new issue
Block a user