1
0
mirror of https://github.com/mastodon/documentation synced 2025-04-11 22:56:17 +02:00
documentation/content/en/entities/PreviewCardAuthor.md
Claire 24dd81ef49
Add documentation for authors attribute in preview cards (#1512)
* Add documentation for `authors` attribute in preview cards

* Add `PreviewCardAuthor` entity

* Update PreviewCard.md

* Update PreviewCardAuthor.md
2024-08-23 17:34:28 +02:00

1.1 KiB

title description menu aliases
PreviewCardAuthor Represents an author in a rich preview card.
docs
parent
entities
/entities/PreviewCardAuthor

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" >}}