summaryrefslogtreecommitdiff
path: root/internal/api/model
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/model')
-rw-r--r--internal/api/model/content.go3
-rw-r--r--internal/api/model/status.go4
2 files changed, 4 insertions, 3 deletions
diff --git a/internal/api/model/content.go b/internal/api/model/content.go
index 7da389ed1..5af81b11b 100644
--- a/internal/api/model/content.go
+++ b/internal/api/model/content.go
@@ -19,7 +19,6 @@ package model
import (
"io"
- "time"
"github.com/superseriousbusiness/gotosocial/internal/storage"
)
@@ -30,8 +29,6 @@ type Content struct {
ContentType string
// ContentLength in bytes
ContentLength int64
- // Time when the content was last updated.
- ContentUpdated time.Time
// Actual content
Content io.ReadCloser
// Resource URL to forward to if the file can be fetched from the storage directly (e.g signed S3 URL)
diff --git a/internal/api/model/status.go b/internal/api/model/status.go
index c29ab3e82..724134b77 100644
--- a/internal/api/model/status.go
+++ b/internal/api/model/status.go
@@ -29,6 +29,10 @@ type Status struct {
// The date when this status was created (ISO 8601 Datetime).
// example: 2021-07-30T09:20:25+00:00
CreatedAt string `json:"created_at"`
+ // Timestamp of when the status was last edited (ISO 8601 Datetime).
+ // example: 2021-07-30T09:20:25+00:00
+ // nullable: true
+ EditedAt *string `json:"edited_at"`
// ID of the status being replied to.
// example: 01FBVD42CQ3ZEEVMW180SBX03B
// nullable: true