mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
mod_http_upload: Rename variable for clarity
This commit is contained in:
parent
efda70e73a
commit
3f5a20c90a
@ -775,14 +775,14 @@ iq_disco_info(Lang, Name) ->
|
|||||||
binary(), slot(), boolean())
|
binary(), slot(), boolean())
|
||||||
-> ok | {ok, [{binary(), binary()}], binary()} | {error, term()}.
|
-> ok | {ok, [{binary(), binary()}], binary()} | {error, term()}.
|
||||||
|
|
||||||
store_file(Path, Data, FileMode, DirMode, GetPrefix, LocalPath, Thumbnail) ->
|
store_file(Path, Data, FileMode, DirMode, GetPrefix, Slot, Thumbnail) ->
|
||||||
case do_store_file(Path, Data, FileMode, DirMode) of
|
case do_store_file(Path, Data, FileMode, DirMode) of
|
||||||
ok when Thumbnail ->
|
ok when Thumbnail ->
|
||||||
case identify(Path) of
|
case identify(Path) of
|
||||||
{ok, MediaInfo} ->
|
{ok, MediaInfo} ->
|
||||||
case convert(Path, MediaInfo) of
|
case convert(Path, MediaInfo) of
|
||||||
{ok, OutPath} ->
|
{ok, OutPath} ->
|
||||||
[UserDir, RandDir | _] = LocalPath,
|
[UserDir, RandDir | _] = Slot,
|
||||||
FileName = filename:basename(OutPath),
|
FileName = filename:basename(OutPath),
|
||||||
URL = str:join([GetPrefix, UserDir,
|
URL = str:join([GetPrefix, UserDir,
|
||||||
RandDir, FileName], <<$/>>),
|
RandDir, FileName], <<$/>>),
|
||||||
|
Loading…
Reference in New Issue
Block a user