diff options
Diffstat (limited to 'internal/processing/media/media.go')
-rw-r--r-- | internal/processing/media/media.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/processing/media/media.go b/internal/processing/media/media.go index 05bea615f..50cbc1b3c 100644 --- a/internal/processing/media/media.go +++ b/internal/processing/media/media.go @@ -37,6 +37,9 @@ type Processor interface { Create(ctx context.Context, account *gtsmodel.Account, form *apimodel.AttachmentRequest) (*apimodel.Attachment, gtserror.WithCode) // Delete deletes the media attachment with the given ID, including all files pertaining to that attachment. Delete(ctx context.Context, mediaAttachmentID string) gtserror.WithCode + // Unattach unattaches the media attachment with the given ID from any statuses it was attached to, making it available + // for reattachment again. + Unattach(ctx context.Context, account *gtsmodel.Account, mediaAttachmentID string) (*apimodel.Attachment, gtserror.WithCode) // GetFile retrieves a file from storage and streams it back to the caller via an io.reader embedded in *apimodel.Content. GetFile(ctx context.Context, account *gtsmodel.Account, form *apimodel.GetContentRequestForm) (*apimodel.Content, gtserror.WithCode) GetCustomEmojis(ctx context.Context) ([]*apimodel.Emoji, gtserror.WithCode) |