1
0
mirror of https://github.com/mastodon/documentation synced 2025-04-11 22:56:17 +02:00
documentation/content/en/entities/AccountWarning.md
Nik Clayton 49868155b9
feat: Document datetime and date formats (#1565)
Add a new document that precisely describes the string representation of
datetime and date types.

The previous description of them as "ISO 8601 Datetime" was very
imprecise, as ISO 8601 describes many different ways of representing a
datetime and date.

Specify the datetime format precisely as the ISO 8601 profile described
in RFC 3339, and the date format precisely as the "Complete date" format
from the W3C note on date and time formats.

Adjust all the references to ISO 8601 datetimes or dates to link back
to the definition.

Fixes #1420
2024-11-27 15:08:51 +00:00

2.0 KiB

title description menu aliases
AccountWarning Moderation warning against a particular account.
docs
parent
entities
/entities/AccountWarning
/api/entities/AccountWarning

Attributes

id

Description: The ID of the account warning in the database.
Type: String (cast from integer)
Version history:
4.3.0 - added

action

Description: Action taken against the account.
Type: String (Enumerable oneOf)
none = No action was taken, this is a simple warning
disable = The account has been disabled
mark_statuses_as_sensitive = Specific posts from the target account have been marked as sensitive
delete_statuses = Specific statuses from the target account have been deleted
sensitive = All posts from the target account are marked as sensitive
silence = The target account has been limited
suspend = The target account has been suspended
Version history:
4.3.0 - added

text

Description: Message from the moderator to the target account.
Type: String
Version history:
4.3.0 - added

status_ids

Description: List of status IDs that are relevant to the warning. When action is mark_statuses_as_sensitive or delete_statuses, those are the affected statuses.
Type: Array of String (cast from integer)
Version history:
4.3.0 - added

target_account

Description: Account against which a moderation decision has been taken.
Type: [Account]({{< relref "entities/Account" >}})
Version history:
4.3.0 - added

appeal

Description: Appeal submitted by the target account, if any.
Type: {{}} [Appeal]({{< relref "entities/Appeal" >}}), or null
Version history:
4.3.0 - added

created_at

Description: When the event took place.
Type: String (Datetime)
Version history:
4.3.0 - added