mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 11:23:01 -06:00
[chore] Move initial MediaRemotePrune to cmd.server function (#536)
* move initial prune up to the server start function * don't do initial prune when starting media manager * add admin/mediaremoteprune in processor
This commit is contained in:
parent
141107bdc1
commit
d7b46a4b63
6 changed files with 57 additions and 4 deletions
|
|
@ -41,6 +41,7 @@ type Processor interface {
|
|||
DomainBlockDelete(ctx context.Context, account *gtsmodel.Account, id string) (*apimodel.DomainBlock, gtserror.WithCode)
|
||||
AccountAction(ctx context.Context, account *gtsmodel.Account, form *apimodel.AdminAccountActionRequest) gtserror.WithCode
|
||||
EmojiCreate(ctx context.Context, account *gtsmodel.Account, user *gtsmodel.User, form *apimodel.EmojiCreateRequest) (*apimodel.Emoji, gtserror.WithCode)
|
||||
MediaRemotePrune(ctx context.Context, mediaRemoteCacheDays int) gtserror.WithCode
|
||||
}
|
||||
|
||||
type processor struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue