summaryrefslogtreecommitdiff
path: root/internal/db/media.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/media.go')
-rw-r--r--internal/db/media.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/media.go b/internal/db/media.go
index 05609ba52..01bca1748 100644
--- a/internal/db/media.go
+++ b/internal/db/media.go
@@ -41,6 +41,9 @@ type Media interface {
// DeleteAttachment deletes the attachment with given ID from the database.
DeleteAttachment(ctx context.Context, id string) error
+ // GetAttachments ...
+ GetAttachments(ctx context.Context, maxID string, limit int) ([]*gtsmodel.MediaAttachment, error)
+
// GetRemoteOlderThan gets limit n remote media attachments (including avatars and headers) older than the given
// olderThan time. These will be returned in order of attachment.created_at descending (newest to oldest in other words).
//