diff --git a/internal/api/client/media/mediacreate.go b/internal/api/client/media/mediacreate.go index dcaba5d5b..db8b2ea56 100644 --- a/internal/api/client/media/mediacreate.go +++ b/internal/api/client/media/mediacreate.go @@ -124,7 +124,7 @@ func (m *Module) MediaCreatePOSTHandler(c *gin.Context) { } apiAttachment, errWithCode := m.processor.MediaCreate(c.Request.Context(), authed, form) - if err != nil { + if errWithCode != nil { api.ErrorHandler(c, errWithCode, m.processor.InstanceGet) return }