mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 06:18:19 +01:00
fix: 🐛 Make LinkPreview an array
This commit is contained in:
parent
938073110d
commit
505642264a
|
|
@ -63,7 +63,7 @@ Notes represent a piece of content on a Versia instance. They can be posted by [
|
||||||
<Property name="mentions" type="URI[]" required={false} typeLink="/types#uri">
|
<Property name="mentions" type="URI[]" required={false} typeLink="/types#uri">
|
||||||
URIs of [Users](/entities/user) that should be notified of the note. Similar to Twitter's `@` mentions. The note may also contain mentions in the content, however only the mentions in this field should trigger notifications.
|
URIs of [Users](/entities/user) that should be notified of the note. Similar to Twitter's `@` mentions. The note may also contain mentions in the content, however only the mentions in this field should trigger notifications.
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="previews" type="LinkPreview" required={false}>
|
<Property name="previews" type="LinkPreview[]" required={false}>
|
||||||
Previews for any links in the publication. This is to avoid the [stampeding mastodon problem](https://github.com/mastodon/mastodon/issues/23662) where a link preview is fetched by every instance that sees the publication, creating an accidental DDOS attack.
|
Previews for any links in the publication. This is to avoid the [stampeding mastodon problem](https://github.com/mastodon/mastodon/issues/23662) where a link preview is fetched by every instance that sees the publication, creating an accidental DDOS attack.
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue