Fix auto-shortcode emoji
authorJorty <jorty@jort.space>
Sun, 1 Jul 2018 00:35:34 +0000 (20:35 -0400)
committerJorty <jorty@jort.space>
Sun, 1 Jul 2018 01:31:08 +0000 (21:31 -0400)
commit748fff6544cc70476bb0892a661d4d8c7f6ee295
tree7be2b78a8b44567d456329f00f2eb9b7b94c3021
parentc171f9790bc2d6a1b215792ade1b1cfc7e458ac4
Fix auto-shortcode emoji

Emoji were broken due to `Pleroma.Formatter` not knowing about the
auto-shortcode emoji. This moves that logic from
`Pleroma.Web.TwitterAPI.UtilController` to `Pleroma.Formatter`.

Additionally, it's now possible to specify multiple shortcode globs, and
the default globs were changed to `["/emoji/custom/**/*.png"]`, since
that's in the .gitignore and the files there would have to be shortcode
emoji anyway.
config/config.exs
lib/pleroma/formatter.ex
lib/pleroma/web/twitter_api/controllers/util_controller.ex