Support data uris in uploads.

This commit is contained in:
Roger Braun 2017-04-16 14:23:30 +02:00
commit 7617a593b9
3 changed files with 36 additions and 1 deletions

View file

@ -167,7 +167,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