diff options
author | 2023-12-05 12:43:07 +0100 | |
---|---|---|
committer | 2023-12-05 12:43:07 +0100 | |
commit | dacfd413dcfc5ead5d019efbe45059f2f6922696 (patch) | |
tree | 9b028b31d16eb90a5cf0697617e50ab1b0b7fa74 /internal/api/model/attachment.go | |
parent | [chore]: Bump go.opentelemetry.io/otel/exporters/prometheus (#2412) (diff) | |
download | gotosocial-dacfd413dcfc5ead5d019efbe45059f2f6922696.tar.xz |
[chore/frontend] Refactor status templates slightly, put polls behind CWs if present (#2419)
* [chore/frontend] Reorder templates, allow polls to be inside content warnings
* show when multiple-choice
Diffstat (limited to 'internal/api/model/attachment.go')
-rw-r--r-- | internal/api/model/attachment.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/api/model/attachment.go b/internal/api/model/attachment.go index 1911fc9c3..7e81759f2 100644 --- a/internal/api/model/attachment.go +++ b/internal/api/model/attachment.go @@ -90,6 +90,12 @@ type Attachment struct { // A hash computed by the BlurHash algorithm, for generating colorful preview thumbnails when media has not been downloaded yet. // See https://github.com/woltapp/blurhash Blurhash *string `json:"blurhash"` + + // Additional fields not exposed via JSON + // (used only internally for templating etc). + + // Parent status of this media is sensitive. + Sensitive bool `json:"-"` } // MediaMeta models media metadata. |