diff options
author | 2024-07-15 11:47:57 +0200 | |
---|---|---|
committer | 2024-07-15 10:47:57 +0100 | |
commit | 9efb11d8485f8273f7d64d46f2675a78fc41d6e8 (patch) | |
tree | c58847c1afc0d29110d06c8b6a7a24652f53dc6b /internal/api/model/status.go | |
parent | [chore]: Bump github.com/tdewolff/minify/v2 from 2.20.34 to 2.20.37 (#3106) (diff) | |
download | gotosocial-9efb11d8485f8273f7d64d46f2675a78fc41d6e8.tar.xz |
[feature/frontend] Add player for audio files; use thumbnail for `poster` (#3099)
* [feature/frontend] Audio player for audio media types
* use video preview images for previews instead of video itself
* don't preload
* update tests for new zork status
* collapse media gallery into single row when small
Diffstat (limited to 'internal/api/model/status.go')
-rw-r--r-- | internal/api/model/status.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/api/model/status.go b/internal/api/model/status.go index a9c668565..e469835bd 100644 --- a/internal/api/model/status.go +++ b/internal/api/model/status.go @@ -111,6 +111,10 @@ type Status struct { type WebStatus struct { *Status + // Web version of media + // attached to this status. + MediaAttachments []*WebAttachment `json:"media_attachments"` + // Template-ready language tag and // string, based on *status.Language. LanguageTag *language.Language |