mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Media cleanup endpoint (#560)
Adds an admin endpoint to trigger a remote media cleanup. Fixed #348 Signed-off-by: Sashanoraa <sasha@noraa.gay>
This commit is contained in:
@ -91,3 +91,12 @@ type AdminAccountActionRequest struct {
|
||||
// ID of the account to be acted on.
|
||||
TargetAccountID string `form:"-" json:"-" xml:"-"`
|
||||
}
|
||||
|
||||
// MediaCleanupRequest models admin media cleanup parameters
|
||||
//
|
||||
// swagger:parameters mediaCleanup
|
||||
type MediaCleanupRequest struct {
|
||||
// Number of days of remote media to keep. Native values will be treated as 0.
|
||||
// If value is not specified, the value of media-remote-cache-days in the server config will be used.
|
||||
RemoteCacheDays *int `form:"remote_cache_days" json:"remote_cache_days" xml:"remote_cache_days"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user