Merge branch 'develop' of ssh.gitgud.io:lambadalambda/pleroma into feature/user-timeline

This commit is contained in:
dtluna 2017-04-16 17:08:17 +03:00
commit 5229b01944
22 changed files with 143 additions and 47 deletions

View file

@ -174,7 +174,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
Repo.all(query)
end
def upload(%Plug.Upload{} = file) do
def upload(file) do
data = Upload.store(file)
Repo.insert(%Object{data: data})
end