summaryrefslogtreecommitdiff
path: root/internal/media/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/media/handler.go')
-rw-r--r--internal/media/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/media/handler.go b/internal/media/handler.go
index 70c5c0826..429dee88a 100644
--- a/internal/media/handler.go
+++ b/internal/media/handler.go
@@ -323,7 +323,7 @@ func (mh *mediaHandler) ProcessRemoteHeaderOrAvatar(ctx context.Context, t trans
expectedContentType = currentAttachment.File.ContentType
}
- attachmentBytes, err := t.DereferenceMedia(context.Background(), remoteIRI, expectedContentType)
+ attachmentBytes, err := t.DereferenceMedia(ctx, remoteIRI, expectedContentType)
if err != nil {
return nil, fmt.Errorf("dereferencing remote media with url %s: %s", remoteIRI.String(), err)
}