Merge branch 'develop' into 'develop'
Dedupe uploads See merge request pleroma/pleroma!115
This commit is contained in:
commit
3f42806b1b
4 changed files with 117 additions and 49 deletions
|
|
@ -496,7 +496,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
end
|
||||
|
||||
def upload(file) do
|
||||
data = Upload.store(file)
|
||||
data = Upload.store(file, Application.get_env(:pleroma, :instance)[:dedupe_media])
|
||||
Repo.insert(%Object{data: data})
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue