Support data uris in uploads.
This commit is contained in:
parent
b179b3413e
commit
7617a593b9
3 changed files with 36 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue