Transmogrifier: Encode Emoji id to be valid.
This commit is contained in:
parent
4a28b81b59
commit
1ae5c2b020
3 changed files with 19 additions and 2 deletions
|
|
@ -0,0 +1,14 @@
|
|||
defmodule Pleroma.Web.ActivityPub.Transmogrifier.EmojiTagBuildingTest do
|
||||
use Pleroma.DataCase, async: true
|
||||
|
||||
alias Pleroma.Web.ActivityPub.Transmogrifier
|
||||
|
||||
test "it encodes the id to be a valid url" do
|
||||
name = "hanapog"
|
||||
url = "https://misskey.local.live/emojis/hana pog.png"
|
||||
|
||||
tag = Transmogrifier.build_emoji_tag({name, url})
|
||||
|
||||
assert tag["id"] == "https://misskey.local.live/emojis/hana%20pog.png"
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue