Emoji, AccountView, UtilController: Handle encoding of emoji

This commit is contained in:
Lain Soykaf 2026-01-07 10:40:45 +04:00
commit 3ef98652f7
5 changed files with 52 additions and 2 deletions

View file

@ -199,7 +199,8 @@ defmodule Pleroma.Emoji do
end
def local_url("/" <> _ = path) do
URIEncoding.encode_url(Endpoint.url() <> path, bypass_decode: true)
path = URIEncoding.encode_url(path, bypass_parse: true, bypass_decode: true)
Endpoint.url() <> path
end
def local_url(path) when is_binary(path) do