diff options
author | 2025-01-08 10:29:23 +0000 | |
---|---|---|
committer | 2025-01-08 11:29:23 +0100 | |
commit | c013892ca22fe6bface8dc580571b2f0527cd1db (patch) | |
tree | 8eccf44e188b2d906aa0bafc9fb37640f1526844 /internal/processing/status/edit.go | |
parent | [feature] Create/update/remove domain permission subscriptions (#3623) (diff) | |
download | gotosocial-c013892ca22fe6bface8dc580571b2f0527cd1db.tar.xz |
[chore] replace statuses.updated_at column with statuses.edited_at (#3636)
* update statuses table to replace updated_at column with edited_at
* code comment
* better code comments, fix setting of status + edit + mention + poll database times
* fix log to logf call
* fix status.EditIDs not being carried over in dereferencer.encrichStatus()
* move status.EditID setting into handleStatusEdit()
Diffstat (limited to 'internal/processing/status/edit.go')
-rw-r--r-- | internal/processing/status/edit.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/processing/status/edit.go b/internal/processing/status/edit.go index d16092a57..95665074e 100644 --- a/internal/processing/status/edit.go +++ b/internal/processing/status/edit.go @@ -147,7 +147,7 @@ func (p *Processor) Edit( // Track status columns we // need to update in database. cols := make([]string, 2, 13) - cols[0] = "updated_at" + cols[0] = "edited_at" cols[1] = "edits" if contentChanged { @@ -259,7 +259,7 @@ func (p *Processor) Edit( edit.Language = status.Language edit.Sensitive = status.Sensitive edit.StatusID = status.ID - edit.CreatedAt = status.UpdatedAt + edit.CreatedAt = status.UpdatedAt() // Copy existing media and descriptions. edit.AttachmentIDs = status.AttachmentIDs @@ -302,7 +302,7 @@ func (p *Processor) Edit( status.Sensitive = &form.Sensitive status.AttachmentIDs = form.MediaIDs status.Attachments = media - status.UpdatedAt = now + status.EditedAt = now if poll != nil { // Set relevent fields for latest with poll. |