AnonymizeFilename: allow for a pre-defined text instead of random string

Improve docs
This commit is contained in:
href 2018-12-07 14:07:11 +01:00
commit 3b27f61ffa
No known key found for this signature in database
GPG key ID: EE8296C1A152C325
2 changed files with 27 additions and 3 deletions

View file

@ -19,6 +19,17 @@ Note: `strip_exif` has been replaced by `Pleroma.Upload.Filter.Mogrify`.
* `args`: List of actions for the `mogrify` command like `"strip"` or `["strip", {"impode", "1"}]`.
## Pleroma.Upload.Filter.Dedupe
No specific configuration.
## Pleroma.Upload.Filter.AnonymizeFilename
This filter remplaces the filename (not the path) of an upload. For complete obfuscation, add
`Pleroma.Upload.Filter.Dedupe` before AnonymizeFilename.
* `text`: Text to remplace filenames in links. If empty, `{random}.extension` will be used.
## :uri_schemes
* `valid_schemes`: List of the scheme part that is considered valid to be an URL