summaryrefslogtreecommitdiff
path: root/internal/processing/media/getmedia.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/media/getmedia.go')
-rw-r--r--internal/processing/media/getmedia.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/media/getmedia.go b/internal/processing/media/getmedia.go
index 91608e90d..763aaf8f6 100644
--- a/internal/processing/media/getmedia.go
+++ b/internal/processing/media/getmedia.go
@@ -43,7 +43,7 @@ func (p *processor) GetMedia(ctx context.Context, account *gtsmodel.Account, med
return nil, gtserror.NewErrorNotFound(errors.New("attachment not owned by requesting account"))
}
- a, err := p.tc.AttachmentToMasto(ctx, attachment)
+ a, err := p.tc.AttachmentToAPIAttachment(ctx, attachment)
if err != nil {
return nil, gtserror.NewErrorNotFound(fmt.Errorf("error converting attachment: %s", err))
}