remove unused AdditionalInfo{}.CreatedAt

This commit is contained in:
kim 2024-11-13 14:35:11 +00:00
parent 3e131f5da6
commit 681927fa34
2 changed files with 0 additions and 7 deletions
internal/media

View file

@ -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
}

View file

@ -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