forked from potsda.mn/mobilizon
Fix a typo in a with clause in Upload module
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
3eb56b57aa
commit
d0ff547417
|
@ -69,7 +69,10 @@ defmodule Mobilizon.Web.Upload do
|
||||||
opts = get_opts(opts)
|
opts = get_opts(opts)
|
||||||
|
|
||||||
with {:ok, upload} <- prepare_upload(upload, opts),
|
with {:ok, upload} <- prepare_upload(upload, opts),
|
||||||
upload = %__MODULE__{upload | path: upload.path || "#{upload.id}/#{upload.name}"},
|
%__MODULE__{} = upload <- %__MODULE__{
|
||||||
|
upload
|
||||||
|
| path: upload.path || "#{upload.id}/#{upload.name}"
|
||||||
|
},
|
||||||
{:ok, upload} <- Filter.filter(opts.filters, upload),
|
{:ok, upload} <- Filter.filter(opts.filters, upload),
|
||||||
{:ok, url_spec} <- Uploader.put_file(opts.uploader, upload) do
|
{:ok, url_spec} <- Uploader.put_file(opts.uploader, upload) do
|
||||||
{:ok,
|
{:ok,
|
||||||
|
|
Loading…
Reference in a new issue