- def put_file(name, uuid, path, content_type, _should_dedupe) do
- settings = Application.get_env(:pleroma, Pleroma.Uploaders.S3)
- bucket = Keyword.fetch!(settings, :bucket)
- public_endpoint = Keyword.fetch!(settings, :public_endpoint)
+ # The file name is re-encoded with S3's constraints here to comply with previous
+ # links with less strict filenames
+ def get_file(file) do
+ config = Config.get([__MODULE__])
+ bucket = Keyword.fetch!(config, :bucket)