summaryrefslogtreecommitdiff
path: root/internal/api/model
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-04-17 14:49:20 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-17 13:49:20 +0100
commitcef9924d9a463df22da273cbca19735ec9e15243 (patch)
tree75271d1b4cd1ed8a91ec1d1a6360338866224a7f /internal/api/model
parent[feature] Stub status history endpoint (#2847) (diff)
downloadgotosocial-cef9924d9a463df22da273cbca19735ec9e15243.tar.xz
[feature] Status source endpoint (#2848)
* [feature] statusSource endpoint * finish up
Diffstat (limited to 'internal/api/model')
-rw-r--r--internal/api/model/status.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/api/model/status.go b/internal/api/model/status.go
index e8677ff6b..d7d3266ed 100644
--- a/internal/api/model/status.go
+++ b/internal/api/model/status.go
@@ -250,6 +250,20 @@ const (
StatusContentTypeDefault = StatusContentTypePlain
)
+// StatusSource represents the source text of a
+// status as submitted to the API when it was created.
+//
+// swagger:model statusSource
+type StatusSource struct {
+ // ID of the status.
+ // example: 01FBVD42CQ3ZEEVMW180SBX03B
+ ID string `json:"id"`
+ // Plain-text source of a status.
+ Text string `json:"source"`
+ // Plain-text version of spoiler text.
+ SpoilerText string `json:"spoiler_text"`
+}
+
// StatusEdit represents one historical revision of a status, containing
// partial information about the state of the status at that revision.
//