From 681927fa34d222bf2b8e1da82ccf7ad54c3f3172 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 13 Nov 2024 14:35:11 +0000 Subject: [PATCH] remove unused AdditionalInfo{}.CreatedAt --- internal/media/manager.go | 3 --- internal/media/types.go | 4 ---- 2 files changed, 7 deletions(-) diff --git a/internal/media/manager.go b/internal/media/manager.go index 2807848bd..f29422afd 100644 --- a/internal/media/manager.go +++ b/internal/media/manager.go @@ -124,9 +124,6 @@ func (m *Manager) CreateMedia( // Check if we were provided additional info // to add to the attachment, and overwrite // some of the attachment fields if so. - if info.CreatedAt != nil { - attachment.CreatedAt = *info.CreatedAt - } if info.StatusID != nil { attachment.StatusID = *info.StatusID } diff --git a/internal/media/types.go b/internal/media/types.go index 9631a15bd..6bca3a901 100644 --- a/internal/media/types.go +++ b/internal/media/types.go @@ -44,10 +44,6 @@ const ( // should be added to attachment when processing a piece of media. type AdditionalMediaInfo struct { - // Time that this media was - // created; defaults to time.Now(). - CreatedAt *time.Time - // ID of the status to which this // media is attached; defaults to "". StatusID *string