summaryrefslogtreecommitdiff
path: root/internal/api/model/content.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/model/content.go')
-rw-r--r--internal/api/model/content.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/api/model/content.go b/internal/api/model/content.go
index 4c0151c2c..0f8f73f1d 100644
--- a/internal/api/model/content.go
+++ b/internal/api/model/content.go
@@ -20,8 +20,9 @@ package model
import (
"io"
- "net/url"
"time"
+
+ "github.com/superseriousbusiness/gotosocial/internal/storage"
)
// Content wraps everything needed to serve a blob of content (some kind of media) through the API.
@@ -35,7 +36,7 @@ type Content struct {
// Actual content
Content io.ReadCloser
// Resource URL to forward to if the file can be fetched from the storage directly (e.g signed S3 URL)
- URL *url.URL
+ URL *storage.PresignedURL
}
// GetContentRequestForm describes a piece of content desired by the caller of the fileserver API.