mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00

* Add documentation for `authors` attribute in preview cards * Add `PreviewCardAuthor` entity * Update PreviewCard.md * Update PreviewCardAuthor.md
1.1 KiB
1.1 KiB
title | description | menu | aliases | |||||
---|---|---|---|---|---|---|---|---|
PreviewCardAuthor | Represents an author in a rich preview card. |
|
|
Attributes
name
Description: The original resource author's name. Replaces the deprecated author_name
attribute of the preview card.
Type: String
Version history:
4.3.0 - added
url
Description: A link to the author of the original resource. Replaces the deprecated author_url
attribute of the preview card.
Type: String (URL)
Version history:
4.3.0 - added
account
{{%nullable%}}
Description: The fediverse account of the author.
Type: [Account]({{< relref "entities/Account">}})
Version history:
4.3.0 - added
See also
{{< page-relref ref="entities/PreviewCard#authors" caption="PreviewCard (authors
attribute)" >}}
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/preview_card_serializer.rb" caption="app/serializers/rest/preview_card_serializer.rb" >}}