pleroma.emoji get-packs duplicates uri of custom packs
It seems that somewhere along the lines, Pleroma is duplicating the uri when fetching file list.
Running: MIX_ENV=prod mix pleroma.emoji get-packs -m https://zoebijl.github.io/QueerCats/meta/pleroma/emoji-index/QueerCats/index.json QueerCats
I receive the following error:
Downloading QueerCats from https://github.com/ZoeBijl/QueerCats/releases/download/v0.2/Queer.Cats.v0.2.zip
SHA256 of QueerCats source file is OK
Fetching the file list for QueerCats from https://zoebijl.github.io/QueerCats/meta/pleroma/emoji-index/QueerCats/https://zoebijl.github.io/QueerCats/meta/pleroma/emoji-index/QueerCats/QueerCats.json
** (Jason.DecodeError) unexpected byte at position 0: 0x3C ('<')
lib/jason.ex:78: Jason.decode!/2
lib/mix/tasks/pleroma/emoji.ex:138: anonymous fn/4 in Mix.Tasks.Pleroma.Emoji.run/1
(elixir) lib/enum.ex:1940: Enum."-reduce/3-lists^foldl/2-0-"/3
lib/mix/tasks/pleroma/emoji.ex:93: Mix.Tasks.Pleroma.Emoji.run/1
(mix) lib/mix/task.ex:331: Mix.Task.run_task/3
(mix) lib/mix/cli.ex:79: Mix.CLI.run_task/2
Is this a bug of Pleroma, or does the json need fixed?
The contents of index.json
:
{
"QueerCats": {
"src_sha256": "fab0006c409ce93354a5961c015629d2b79f12da5ef8da553e623a593157f0f6",
"src": "https://github.com/ZoeBijl/QueerCats/releases/download/v0.2/Queer.Cats.v0.2.zip",
"license": "CC0",
"homepage": "https://github.com/ZoeBijl/QueerCats",
"files": "https://zoebijl.github.io/QueerCats/meta/pleroma/emoji-index/QueerCats/QueerCats.json",
"description": "A whole bunch of pride flags represented as blobby cat emoji!"
}
}