MastoAPI: Add categories to custom emojis
Note: This isn’t in a release yet, can be seen in mastofe on the rebase/glitch-soc branch.
This commit is contained in:
parent
b972b972e0
commit
252e129b1e
3 changed files with 5 additions and 1 deletions
|
|
@ -299,7 +299,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
|||
"static_url" => url,
|
||||
"visible_in_picker" => true,
|
||||
"url" => url,
|
||||
"tags" => tags
|
||||
"tags" => tags,
|
||||
# Assuming that a comma is authorized in the category name
|
||||
"category" => (tags -- ["Custom"]) |> Enum.join(",")
|
||||
}
|
||||
end)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue