From f4f5e8b5aa477c19781f3c7b5ffea7dbee822052 Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 2 Dec 2024 15:35:25 +0000 Subject: [PATCH] don't automatically set `updated_at` field on updated statuses --- internal/db/bundb/status.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/db/bundb/status.go b/internal/db/bundb/status.go index c480e5957..4b2059acc 100644 --- a/internal/db/bundb/status.go +++ b/internal/db/bundb/status.go @@ -406,12 +406,6 @@ func (s *statusDB) PutStatus(ctx context.Context, status *gtsmodel.Status) error } func (s *statusDB) UpdateStatus(ctx context.Context, status *gtsmodel.Status, columns ...string) error { - status.UpdatedAt = time.Now() - if len(columns) > 0 { - // If we're updating by column, ensure "updated_at" is included. - columns = append(columns, "updated_at") - } - return s.state.Caches.DB.Status.Store(status, func() error { // It is safe to run this database transaction within cache.Store // as the cache does not attempt a mutex lock until AFTER hook.