summaryrefslogtreecommitdiff
path: root/docs/config/custom_emoji.md
diff options
context:
space:
mode:
authorIvan Tashkinov <ivant.business@gmail.com>2019-04-01 08:49:32 +0300
committerIvan Tashkinov <ivant.business@gmail.com>2019-04-01 08:49:32 +0300
commitbaffdcc480cea13269ef0e3af58f0a848892bb9a (patch)
treea9499083c412b24173fa14717cec7041c6f3f45c /docs/config/custom_emoji.md
parent642075b1a935c42181a10ea695b2289883126136 (diff)
parentdc39d8d3fb941bad9fe26586c321bb00a0b92fe4 (diff)
downloadpleroma-baffdcc480cea13269ef0e3af58f0a848892bb9a.tar.gz
pleroma-baffdcc480cea13269ef0e3af58f0a848892bb9a.zip
[#923] Merge remote-tracking branch 'remotes/upstream/develop' into twitter_oauth
# Conflicts: # mix.exs
Diffstat (limited to 'docs/config/custom_emoji.md')
-rw-r--r--docs/config/custom_emoji.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/config/custom_emoji.md b/docs/config/custom_emoji.md
new file mode 100644
index 000000000..e833d2080
--- /dev/null
+++ b/docs/config/custom_emoji.md
@@ -0,0 +1,18 @@
+# Custom Emoji
+
+To add custom emoji:
+* Add the image file(s) to `priv/static/emoji/custom`
+* In case of conflicts: add the desired shortcode with the path to `config/custom_emoji.txt`, comma-separated and one per line
+* Force recompilation (``mix clean && mix compile``)
+
+Example:
+
+image files (in `/priv/static/emoji/custom`): `happy.png` and `sad.png`
+
+content of `config/custom_emoji.txt`:
+```
+happy, /emoji/custom/happy.png
+sad, /emoji/custom/sad.png
+```
+
+The files should be PNG (APNG is okay with `.png` for `image/png` Content-type) and under 50kb for compatibility with mastodon.