diff options
Diffstat (limited to 'internal/processing/media')
| -rw-r--r-- | internal/processing/media/getfile.go | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/internal/processing/media/getfile.go b/internal/processing/media/getfile.go index d5f74926a..48e907244 100644 --- a/internal/processing/media/getfile.go +++ b/internal/processing/media/getfile.go @@ -85,9 +85,6 @@ func (p *processor) GetFile(ctx context.Context, requestingAccount *gtsmodel.Acc  }  func (p *processor) getAttachmentContent(ctx context.Context, requestingAccount *gtsmodel.Account, wantedMediaID string, owningAccountID string, mediaSize media.Size) (*apimodel.Content, gtserror.WithCode) { -	attachmentContent := &apimodel.Content{} -	var storagePath string -  	// retrieve attachment from the database and do basic checks on it  	a, err := p.db.GetAttachmentByID(ctx, wantedMediaID)  	if err != nil { @@ -146,6 +143,13 @@ func (p *processor) getAttachmentContent(ctx context.Context, requestingAccount  		}  	} +	var ( +		storagePath       string +		attachmentContent = &apimodel.Content{ +			ContentUpdated: a.UpdatedAt, +		} +	) +  	// get file information from the attachment depending on the requested media size  	switch mediaSize {  	case media.SizeOriginal: | 
