diff options
author | 2022-05-15 08:52:46 -0400 | |
---|---|---|
committer | 2022-05-15 14:52:46 +0200 | |
commit | 6e947ff2662d0b9fc475c5b21e9f1cfb0bb308a0 (patch) | |
tree | 9138d4e7a988e883b7734431034c055776f255f6 /internal/api/model | |
parent | [documentation] Nlnet application (#572) (diff) | |
download | gotosocial-6e947ff2662d0b9fc475c5b21e9f1cfb0bb308a0.tar.xz |
[feature] Media cleanup endpoint (#560)
Adds an admin endpoint to trigger a remote media cleanup.
Fixed #348
Signed-off-by: Sashanoraa <sasha@noraa.gay>
Diffstat (limited to 'internal/api/model')
-rw-r--r-- | internal/api/model/admin.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/api/model/admin.go b/internal/api/model/admin.go index ada415546..023ba42b1 100644 --- a/internal/api/model/admin.go +++ b/internal/api/model/admin.go @@ -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"` +} |