1
0
mirror of https://github.com/mastodon/documentation synced 2025-04-11 22:56:17 +02:00
trwnh 7ceae9fe36 Update anchors, line breaks, tootctl options (#745)
* update anchors

* remove extraneous anchors

* fix line breaks

* wrap tootctl tokens in code blocks

* change anchors to hugo format

* fix mistaken search-and-replace

* fix mistaken search-and-replace
2020-01-12 14:11:56 +01:00

1.4 KiB

title description menu
Mention Represents a mention of a user within the content of a status.
docs
parent
entities

Example

{{< code title="excerpt from GET status:" >}}

{
  "mentions": [
    {
      "id": "952529",
      "username": "alayna",
      "url": "https://desvox.es/users/alayna",
      "acct": "alayna@desvox.es"
    },
    {
      "id": "14715",
      "username": "trwnh",
      "url": "https://mastodon.social/@trwnh",
      "acct": "trwnh"
    }
  ]
}

{{< /code >}}

Required attributes

id

Description: The account id of the mentioned user.
Type: String (cast from an integer, but not guaranteed to be a number)
Version history: Added in 0.6.0

username

Description: The username of the mentioned user.
Type: String
Version history: Added in 0.6.0

acct

Description: The webfinger acct: URI of the mentioned user. Equivalent to username for local users, or username@domain for remote users.
Type: String
Version history: Added in 0.6.0

url

Description: The location of the mentioned user's profile.
Type: String (URL)
Version history: Added in 0.6.0

See also

{{< page-ref page="status.md" >}}