Implement mastodon's reblog hiding feature
[akkoma] / docs / Custom-Emoji.md
1 To add custom emoji:
2 * Add the image file(s) to `priv/static/emoji/custom`
3 * In case of conflicts: add the desired shortcode with the path to `config/custom_emoji.txt`, comma-separated and one per line
4 * Force recompilation (``mix clean && mix compile``)
5
6 Example:
7
8 image files (in `/priv/static/emoji/custom`): `happy.png` and `sad.png`
9
10 content of `config/custom_emoji.txt`:
11 ```
12 happy, /emoji/custom/happy.png
13 sad, /emoji/custom/sad.png
14 ```
15
16 The files should be PNG (APNG is okay with `.png` for `image/png` Content-type) and under 50kb for compatibility with mastodon.