diff options
Diffstat (limited to 'internal/db/media.go')
-rw-r--r-- | internal/db/media.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/media.go b/internal/db/media.go index c734502a1..636fc61f2 100644 --- a/internal/db/media.go +++ b/internal/db/media.go @@ -35,4 +35,7 @@ type Media interface { // The selected media attachments will be those with both a URL and a RemoteURL filled in. // In other words, media attachments that originated remotely, and that we currently have cached locally. GetRemoteOlderThan(ctx context.Context, olderThan time.Time, limit int) ([]*gtsmodel.MediaAttachment, Error) + // GetAvatarsAndHeaders fetches limit n avatars and headers with an id < maxID. These headers + // and avis may be in use or not; the caller should check this if it's important. + GetAvatarsAndHeaders(ctx context.Context, maxID string, limit int) ([]*gtsmodel.MediaAttachment, Error) } |