From 489bd99803cde976d78c312b0079d8de50f3617c Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Tue, 15 Nov 2016 18:38:57 +0100
Subject: Support emojis in display name, bio

---
 app/assets/javascripts/components/emoji.jsx | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 app/assets/javascripts/components/emoji.jsx

(limited to 'app/assets/javascripts/components/emoji.jsx')

diff --git a/app/assets/javascripts/components/emoji.jsx b/app/assets/javascripts/components/emoji.jsx
new file mode 100644
index 000000000..a06c75953
--- /dev/null
+++ b/app/assets/javascripts/components/emoji.jsx
@@ -0,0 +1,9 @@
+import emojione from 'emojione';
+
+emojione.imageType    = 'png';
+emojione.sprites      = false;
+emojione.imagePathPNG = '/emoji/';
+
+export default function emojify(text) {
+  return emojione.unicodeToImage(text);
+};
-- 
cgit 

