
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
2.8 KiB
title | description | menu | aliases | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Admin::DomainBlock | Represents a domain limited from federating. |
|
|
Example
{
"id": "1",
"domain": "example.com",
"digest": "a379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce1947",
"created_at": "2022-11-16T08:15:34.238Z",
"severity": "noop",
"reject_media": false,
"reject_reports": false,
"private_comment": null,
"public_comment": null,
"obfuscate": false
}
Attributes
id
Description: The ID of the DomainBlock in the database.
Type: String (cast from an integer, but not guaranteed to be a number)
Version history:
4.0.0 - added
domain
Description: The domain that is not allowed to federate.
Type: String
Version history:
4.0.0 - added
digest
Description: The sha256 hex digest of the domain that is not allowed to federated.
Type: String
Version history:
4.3.0 - added
created_at
Description: When the domain was blocked from federating.
Type: String (Datetime)
Version history:
4.0.0 - added
severity
Description: The policy to be applied by this domain block.
Type: String (Enumerable oneOf)
silence
= Account statuses from this domain will be hidden by default
suspend
= All incoming data from this domain will be rejected
noop
= Do nothing. Allows for rejecting media or reports
Version history:
4.0.0 - added
reject_media
Description: Whether to reject media attachments from this domain
Type: Boolean
Version history:
4.0.0 - added
reject_reports
Description: Whether to reject reports from this domain
Type: Boolean
Version history:
4.0.0 - added
private_comment
Description:
Type: {{}} String
Version history:
4.0.0 - added
public_comment
Description:
Type: {{}} String
Version history:
4.0.0 - added
obfuscate
Description: Whether to obfuscate public displays of this domain block
Type: Boolean
Version history:
4.0.0 - added
See also
{{< page-relref page="methods/admin/domain_blocks" caption="admin/domain_blocks API methods" >}}
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/admin/domain_block_serializer.rb" caption="app/serializers/rest/admin/domain_block_serializer.rb" >}}