Runtime configured emojis
authorhref <href@random.sh>
Mon, 5 Nov 2018 12:24:00 +0000 (13:24 +0100)
committerhref <href@random.sh>
Mon, 5 Nov 2018 12:24:00 +0000 (13:24 +0100)
commit763fc7b44fb5931f1a2f869d4c67a5ca9a0b5206
treec5e3aa419de92a3e6dd835127c6b0dbc79bb6561
parentbd97b3614f2353619ab524844d100b6f25527592
Runtime configured emojis

The changes are a bit heavy since the emojis were loaded into module
attributes from filesystem.

This introduces a GenServer using an ETS table to cache in memory the
emojis, and allows a runtime-reload with `Pleroma.Emoji.reload()`.
lib/pleroma/application.ex
lib/pleroma/emoji.ex [new file with mode: 0644]
lib/pleroma/formatter.ex
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
lib/pleroma/web/twitter_api/controllers/util_controller.ex