[#210] Stylistic change.
This commit is contained in:
parent
ba345e4c29
commit
c4f3c5e939
@ -574,7 +574,7 @@ def fetch_activities_bounded(recipients_to, recipients_cc, opts \\ %{}) do
|
|||||||
|
|
||||||
def upload(file, opts \\ []) do
|
def upload(file, opts \\ []) do
|
||||||
with {:ok, data} <- Upload.store(file, opts) do
|
with {:ok, data} <- Upload.store(file, opts) do
|
||||||
obj_data = if opts[:actor], do: Map.put(data, "actor", opts[:actor]), else: data
|
obj_data = (opts[:actor] && Map.put(data, "actor", opts[:actor])) || data
|
||||||
Repo.insert(%Object{data: obj_data})
|
Repo.insert(%Object{data: obj_data})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user