diff options
author | 2025-01-08 10:29:23 +0000 | |
---|---|---|
committer | 2025-01-08 11:29:23 +0100 | |
commit | c013892ca22fe6bface8dc580571b2f0527cd1db (patch) | |
tree | 8eccf44e188b2d906aa0bafc9fb37640f1526844 /internal/typeutils/internaltoas.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/typeutils/internaltoas.go')
-rw-r--r-- | internal/typeutils/internaltoas.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go index 7d0c483dd..644d832f5 100644 --- a/internal/typeutils/internaltoas.go +++ b/internal/typeutils/internaltoas.go @@ -486,7 +486,9 @@ func (c *Converter) StatusToAS(ctx context.Context, s *gtsmodel.Status) (ap.Stat // Set created / updated at properties. ap.SetPublished(status, s.CreatedAt) - ap.SetUpdated(status, s.UpdatedAt) + if at := s.EditedAt; !at.IsZero() { + ap.SetUpdated(status, at) + } // url if s.URL != "" { |