X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fupload.ex;h=2717377a37f4f6d1c1379fb80f6e225563742601;hb=c6bdc5960c4dbbdd5d5d86b6d49669611392c73f;hp=5691c6845255a0668a19cc7f38dcb4634ce4a57f;hpb=9c35456d77cec6e37c18b78a20719a7dac865532;p=akkoma diff --git a/lib/pleroma/upload.ex b/lib/pleroma/upload.ex index 5691c6845..2717377a3 100644 --- a/lib/pleroma/upload.ex +++ b/lib/pleroma/upload.ex @@ -13,7 +13,7 @@ defmodule Pleroma.Upload do "url" => [%{ "type" => "Link", "mediaType" => file.content_type, - "href" => url_for(Path.join(uuid, URI.encode(file.filename))) + "href" => url_for(Path.join(uuid, :cow_uri.urlencode(file.filename))) }], "name" => file.filename, "uuid" => uuid @@ -38,7 +38,7 @@ defmodule Pleroma.Upload do "url" => [%{ "type" => "Link", "mediaType" => content_type, - "href" => url_for(Path.join(uuid, URI.encode(filename))) + "href" => url_for(Path.join(uuid, :cow_uri.urlencode(filename))) }], "name" => filename, "uuid" => uuid