summaryrefslogtreecommitdiff
path: root/internal/api/model/status.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-04-17 14:06:49 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-17 13:06:49 +0100
commitef16919d4a551ead52bb0c7f9ae3f6974b073472 (patch)
tree3dc372cf00447e6dae01bc4498e1a3e0355919a3 /internal/api/model/status.go
parent[bugfix] Fix minor API issue w/ boosted statuses (#2846) (diff)
downloadgotosocial-ef16919d4a551ead52bb0c7f9ae3f6974b073472.tar.xz
[feature] Stub status history endpoint (#2847)
Diffstat (limited to 'internal/api/model/status.go')
-rw-r--r--internal/api/model/status.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/internal/api/model/status.go b/internal/api/model/status.go
index fed2cdf37..e8677ff6b 100644
--- a/internal/api/model/status.go
+++ b/internal/api/model/status.go
@@ -249,3 +249,33 @@ const (
StatusContentTypeMarkdown StatusContentType = "text/markdown"
StatusContentTypeDefault = StatusContentTypePlain
)
+
+// StatusEdit represents one historical revision of a status, containing
+// partial information about the state of the status at that revision.
+//
+// swagger:model statusEdit
+type StatusEdit struct {
+ // The content of this status at this revision.
+ // Should be HTML, but might also be plaintext in some cases.
+ // example: <p>Hey this is a status!</p>
+ Content string `json:"content"`
+ // Subject, summary, or content warning for the status at this revision.
+ // example: warning nsfw
+ SpoilerText string `json:"spoiler_text"`
+ // Status marked sensitive at this revision.
+ // example: false
+ Sensitive bool `json:"sensitive"`
+ // The date when this revision was created (ISO 8601 Datetime).
+ // example: 2021-07-30T09:20:25+00:00
+ CreatedAt string `json:"created_at"`
+ // The account that authored this status.
+ Account *Account `json:"account"`
+ // The poll attached to the status at this revision.
+ // Note that edits changing the poll options will be collapsed together into one edit, since this action resets the poll.
+ // nullable: true
+ Poll *Poll `json:"poll"`
+ // Media that is attached to this status.
+ MediaAttachments []*Attachment `json:"media_attachments"`
+ // Custom emoji to be used when rendering status content.
+ Emojis []Emoji `json:"emojis"`
+}