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