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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/media.go b/internal/db/media.go
index 66fa258fe..94a365c26 100644
--- a/internal/db/media.go
+++ b/internal/db/media.go
@@ -41,10 +41,10 @@ type Media interface {
// DeleteAttachment deletes the attachment with given ID from the database.
DeleteAttachment(ctx context.Context, id string) error
- // GetAttachments ...
+ // GetAttachments fetches media attachments up to a given max ID, and at most limit.
GetAttachments(ctx context.Context, maxID string, limit int) ([]*gtsmodel.MediaAttachment, error)
- // GetRemoteAttachments ...
+ // GetRemoteAttachments fetches media attachments with a non-empty domain, up to a given max ID, and at most limit.
GetRemoteAttachments(ctx context.Context, maxID string, limit int) ([]*gtsmodel.MediaAttachment, error)
// GetCachedAttachmentsOlderThan gets limit n remote attachments (including avatars and headers) older than