mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-24 02:02:19 +00:00
[#210] Stylistic change.
This commit is contained in:
parent
c4f3c5e939
commit
3b5be09f45
|
@ -574,7 +574,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
|
||||
def upload(file, opts \\ []) do
|
||||
with {:ok, data} <- Upload.store(file, opts) do
|
||||
obj_data = (opts[:actor] && Map.put(data, "actor", opts[:actor])) || data
|
||||
obj_data = if opts[:actor], do: Map.put(data, "actor", opts[:actor]), else: data
|
||||
Repo.insert(%Object{data: obj_data})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue