mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 16:40:29 +00:00
[#210] Stylistic change.
This commit is contained in:
parent
ba345e4c29
commit
c4f3c5e939
1 changed files with 1 additions and 1 deletions
|
@ -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 = 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})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue