From 8437f41a9a438133d3dc6f7172c4e7843290a296 Mon Sep 17 00:00:00 2001
From: Travis Ralston <travpc@gmail.com>
Date: Fri, 9 Jun 2023 22:41:46 -0600
Subject: [PATCH] Stop using aliased response object in exports

---
 api/custom/exports.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/api/custom/exports.go b/api/custom/exports.go
index f12439e9..61335e86 100644
--- a/api/custom/exports.go
+++ b/api/custom/exports.go
@@ -12,7 +12,6 @@ import (
 
 	"github.com/dustin/go-humanize"
 	"github.com/sirupsen/logrus"
-	"github.com/turt2live/matrix-media-repo/api/r0"
 	"github.com/turt2live/matrix-media-repo/common/rcontext"
 	"github.com/turt2live/matrix-media-repo/controllers/data_controller"
 	"github.com/turt2live/matrix-media-repo/matrix"
@@ -274,7 +273,7 @@ func DownloadExportPart(r *http.Request, rctx rcontext.RequestContext, user _api
 		return _responses.InternalServerError("failed to start download")
 	}
 
-	return &r0.DownloadMediaResponse{
+	return &_responses.DownloadResponse{
 		ContentType:       "application/gzip",
 		SizeBytes:         part.SizeBytes,
 		Data:              s,
-- 
GitLab