aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Module/React.php50
-rw-r--r--images/emoji/1f37a.pngbin0 -> 1340 bytes
-rw-r--r--images/emoji/1f37b.pngbin0 -> 2100 bytes
-rw-r--r--images/emoji/1f37e.pngbin0 -> 1205 bytes
-rw-r--r--images/emoji/1f3a4.pngbin0 -> 1165 bytes
-rw-r--r--images/emoji/1f3b5.pngbin0 -> 419 bytes
-rw-r--r--images/emoji/1f3c6.pngbin0 -> 863 bytes
-rw-r--r--images/emoji/1f44b.pngbin0 -> 1311 bytes
-rw-r--r--images/emoji/1f44c.pngbin0 -> 979 bytes
-rw-r--r--images/emoji/1f44d.pngbin0 -> 814 bytes
-rw-r--r--images/emoji/1f44e.pngbin0 -> 815 bytes
-rw-r--r--images/emoji/1f44f.pngbin0 -> 1456 bytes
-rw-r--r--images/emoji/1f47d.pngbin0 -> 839 bytes
-rw-r--r--images/emoji/1f48b.pngbin0 -> 842 bytes
-rw-r--r--images/emoji/1f493.pngbin0 -> 699 bytes
-rw-r--r--images/emoji/1f497.pngbin0 -> 675 bytes
-rw-r--r--images/emoji/1f4a3.pngbin0 -> 702 bytes
-rw-r--r--images/emoji/1f4a4.pngbin0 -> 540 bytes
-rw-r--r--images/emoji/1f595.pngbin0 -> 893 bytes
-rw-r--r--images/emoji/1f5a4.pngbin0 -> 435 bytes
-rw-r--r--images/emoji/1f5e8.pngbin0 -> 390 bytes
-rw-r--r--images/emoji/1f607.pngbin0 -> 935 bytes
-rw-r--r--images/emoji/1f608.pngbin0 -> 1078 bytes
-rw-r--r--images/emoji/1f60a.pngbin0 -> 812 bytes
-rw-r--r--images/emoji/1f60b.pngbin0 -> 896 bytes
-rw-r--r--images/emoji/1f60c.pngbin0 -> 785 bytes
-rw-r--r--images/emoji/1f60d.pngbin0 -> 1069 bytes
-rw-r--r--images/emoji/1f60e.pngbin0 -> 824 bytes
-rw-r--r--images/emoji/1f60f.pngbin0 -> 775 bytes
-rw-r--r--images/emoji/1f619.pngbin0 -> 648 bytes
-rw-r--r--images/emoji/1f61a.pngbin0 -> 888 bytes
-rw-r--r--images/emoji/1f61b.pngbin0 -> 752 bytes
-rw-r--r--images/emoji/1f61c.pngbin0 -> 1061 bytes
-rw-r--r--images/emoji/1f61d.pngbin0 -> 867 bytes
-rw-r--r--images/emoji/1f61e.pngbin0 -> 757 bytes
-rw-r--r--images/emoji/1f61f.pngbin0 -> 715 bytes
-rw-r--r--images/emoji/1f622.pngbin0 -> 1123 bytes
-rw-r--r--images/emoji/1f628.pngbin0 -> 1002 bytes
-rw-r--r--images/emoji/1f62a.pngbin0 -> 1185 bytes
-rw-r--r--images/emoji/1f62b.pngbin0 -> 1132 bytes
-rw-r--r--images/emoji/1f62c.pngbin0 -> 694 bytes
-rw-r--r--images/emoji/1f62d.pngbin0 -> 1241 bytes
-rw-r--r--images/emoji/1f62e.pngbin0 -> 575 bytes
-rw-r--r--images/emoji/1f62f.pngbin0 -> 634 bytes
-rw-r--r--images/emoji/1f631.pngbin0 -> 1588 bytes
-rw-r--r--images/emoji/1f634.pngbin0 -> 1075 bytes
-rw-r--r--images/emoji/1f64b.pngbin0 -> 1669 bytes
-rw-r--r--images/emoji/1f64f.pngbin0 -> 1122 bytes
-rw-r--r--images/emoji/1f6ab.pngbin0 -> 555 bytes
-rw-r--r--images/emoji/1f918.pngbin0 -> 894 bytes
-rw-r--r--images/emoji/1f919.pngbin0 -> 894 bytes
-rw-r--r--images/emoji/1f91d.pngbin0 -> 1369 bytes
-rw-r--r--images/emoji/262e.pngbin0 -> 933 bytes
-rw-r--r--images/emoji/263a.pngbin0 -> 636 bytes
-rw-r--r--images/emoji/2665.pngbin0 -> 449 bytes
-rw-r--r--images/emoji/26a1.pngbin0 -> 413 bytes
-rw-r--r--images/emoji/270c.pngbin0 -> 1009 bytes
-rw-r--r--images/emoji/2714.pngbin0 -> 438 bytes
-rw-r--r--images/emoji/2716.pngbin0 -> 298 bytes
-rw-r--r--images/emoji/2754.pngbin0 -> 449 bytes
-rw-r--r--images/emoji/README2
61 files changed, 52 insertions, 0 deletions
diff --git a/Zotlabs/Module/React.php b/Zotlabs/Module/React.php
new file mode 100644
index 000000000..85a1e2350
--- /dev/null
+++ b/Zotlabs/Module/React.php
@@ -0,0 +1,50 @@
+<?php
+
+namespace Zotlabs\Module;
+
+
+class React extends \Zotlabs\Web\Controller {
+
+ function get() {
+ if(! local_channel())
+ return;
+
+ $postid = $_REQUEST['postid'];
+
+ if(! $postid)
+ return;
+
+ $emoji = $_REQUEST['emoji'];
+ if($_REQUEST['emoji']) {
+
+ $i = q("select * from item where id = %d and uid = %d",
+ intval($postid),
+ intval(local_channel())
+ );
+
+ if(! $i)
+ return;
+
+ $channel = \App::get_channel();
+
+ $n = array();
+ $n['aid'] = $channel['channel_account_id'];
+ $n['uid'] = $channel['channel_id'];
+ $n['parent'] = $postid;
+ $n['parent_mid'] = $i[0]['mid'];
+ $n['mid'] = item_message_id();
+ $n['verb'] = ACTIVITY_REACT . '#' . $emoji;
+ $n['body'] = "\n\n[zmg]" . z_root() . '/images/emoji/' . $emoji . '.png[/zmg]' . "\n\n";
+ $n['author_xchan'] = $channel['channel_hash'];
+
+ $x = item_store($n);
+ if($x['success']) {
+ $nid = $x['item_id'];
+ \Zotlabs\Daemon\Master::Summon(array('Notifier','like',$nid));
+ }
+
+ }
+
+ }
+
+} \ No newline at end of file
diff --git a/images/emoji/1f37a.png b/images/emoji/1f37a.png
new file mode 100644
index 000000000..894da40a7
--- /dev/null
+++ b/images/emoji/1f37a.png
Binary files differ
diff --git a/images/emoji/1f37b.png b/images/emoji/1f37b.png
new file mode 100644
index 000000000..b55deb66b
--- /dev/null
+++ b/images/emoji/1f37b.png
Binary files differ
diff --git a/images/emoji/1f37e.png b/images/emoji/1f37e.png
new file mode 100644
index 000000000..285a79a93
--- /dev/null
+++ b/images/emoji/1f37e.png
Binary files differ
diff --git a/images/emoji/1f3a4.png b/images/emoji/1f3a4.png
new file mode 100644
index 000000000..d4e6b0def
--- /dev/null
+++ b/images/emoji/1f3a4.png
Binary files differ
diff --git a/images/emoji/1f3b5.png b/images/emoji/1f3b5.png
new file mode 100644
index 000000000..06691ef61
--- /dev/null
+++ b/images/emoji/1f3b5.png
Binary files differ
diff --git a/images/emoji/1f3c6.png b/images/emoji/1f3c6.png
new file mode 100644
index 000000000..ac2895c18
--- /dev/null
+++ b/images/emoji/1f3c6.png
Binary files differ
diff --git a/images/emoji/1f44b.png b/images/emoji/1f44b.png
new file mode 100644
index 000000000..02ae68b85
--- /dev/null
+++ b/images/emoji/1f44b.png
Binary files differ
diff --git a/images/emoji/1f44c.png b/images/emoji/1f44c.png
new file mode 100644
index 000000000..028d69b0d
--- /dev/null
+++ b/images/emoji/1f44c.png
Binary files differ
diff --git a/images/emoji/1f44d.png b/images/emoji/1f44d.png
new file mode 100644
index 000000000..f9e6f13a3
--- /dev/null
+++ b/images/emoji/1f44d.png
Binary files differ
diff --git a/images/emoji/1f44e.png b/images/emoji/1f44e.png
new file mode 100644
index 000000000..b63da2f20
--- /dev/null
+++ b/images/emoji/1f44e.png
Binary files differ
diff --git a/images/emoji/1f44f.png b/images/emoji/1f44f.png
new file mode 100644
index 000000000..b0ffe9289
--- /dev/null
+++ b/images/emoji/1f44f.png
Binary files differ
diff --git a/images/emoji/1f47d.png b/images/emoji/1f47d.png
new file mode 100644
index 000000000..3b90e9743
--- /dev/null
+++ b/images/emoji/1f47d.png
Binary files differ
diff --git a/images/emoji/1f48b.png b/images/emoji/1f48b.png
new file mode 100644
index 000000000..85e6dcfc4
--- /dev/null
+++ b/images/emoji/1f48b.png
Binary files differ
diff --git a/images/emoji/1f493.png b/images/emoji/1f493.png
new file mode 100644
index 000000000..0bcf2d1d5
--- /dev/null
+++ b/images/emoji/1f493.png
Binary files differ
diff --git a/images/emoji/1f497.png b/images/emoji/1f497.png
new file mode 100644
index 000000000..d6e694e97
--- /dev/null
+++ b/images/emoji/1f497.png
Binary files differ
diff --git a/images/emoji/1f4a3.png b/images/emoji/1f4a3.png
new file mode 100644
index 000000000..c7f8f81c9
--- /dev/null
+++ b/images/emoji/1f4a3.png
Binary files differ
diff --git a/images/emoji/1f4a4.png b/images/emoji/1f4a4.png
new file mode 100644
index 000000000..9bc72b446
--- /dev/null
+++ b/images/emoji/1f4a4.png
Binary files differ
diff --git a/images/emoji/1f595.png b/images/emoji/1f595.png
new file mode 100644
index 000000000..697f7a25e
--- /dev/null
+++ b/images/emoji/1f595.png
Binary files differ
diff --git a/images/emoji/1f5a4.png b/images/emoji/1f5a4.png
new file mode 100644
index 000000000..b4068c3e6
--- /dev/null
+++ b/images/emoji/1f5a4.png
Binary files differ
diff --git a/images/emoji/1f5e8.png b/images/emoji/1f5e8.png
new file mode 100644
index 000000000..00c05959b
--- /dev/null
+++ b/images/emoji/1f5e8.png
Binary files differ
diff --git a/images/emoji/1f607.png b/images/emoji/1f607.png
new file mode 100644
index 000000000..57f515112
--- /dev/null
+++ b/images/emoji/1f607.png
Binary files differ
diff --git a/images/emoji/1f608.png b/images/emoji/1f608.png
new file mode 100644
index 000000000..cc2c5f1ec
--- /dev/null
+++ b/images/emoji/1f608.png
Binary files differ
diff --git a/images/emoji/1f60a.png b/images/emoji/1f60a.png
new file mode 100644
index 000000000..aac1a424a
--- /dev/null
+++ b/images/emoji/1f60a.png
Binary files differ
diff --git a/images/emoji/1f60b.png b/images/emoji/1f60b.png
new file mode 100644
index 000000000..2df15753c
--- /dev/null
+++ b/images/emoji/1f60b.png
Binary files differ
diff --git a/images/emoji/1f60c.png b/images/emoji/1f60c.png
new file mode 100644
index 000000000..715ad0bf5
--- /dev/null
+++ b/images/emoji/1f60c.png
Binary files differ
diff --git a/images/emoji/1f60d.png b/images/emoji/1f60d.png
new file mode 100644
index 000000000..73fbee29d
--- /dev/null
+++ b/images/emoji/1f60d.png
Binary files differ
diff --git a/images/emoji/1f60e.png b/images/emoji/1f60e.png
new file mode 100644
index 000000000..200117351
--- /dev/null
+++ b/images/emoji/1f60e.png
Binary files differ
diff --git a/images/emoji/1f60f.png b/images/emoji/1f60f.png
new file mode 100644
index 000000000..878521099
--- /dev/null
+++ b/images/emoji/1f60f.png
Binary files differ
diff --git a/images/emoji/1f619.png b/images/emoji/1f619.png
new file mode 100644
index 000000000..e181f1709
--- /dev/null
+++ b/images/emoji/1f619.png
Binary files differ
diff --git a/images/emoji/1f61a.png b/images/emoji/1f61a.png
new file mode 100644
index 000000000..b684d7d4d
--- /dev/null
+++ b/images/emoji/1f61a.png
Binary files differ
diff --git a/images/emoji/1f61b.png b/images/emoji/1f61b.png
new file mode 100644
index 000000000..25757341f
--- /dev/null
+++ b/images/emoji/1f61b.png
Binary files differ
diff --git a/images/emoji/1f61c.png b/images/emoji/1f61c.png
new file mode 100644
index 000000000..4817eaa3d
--- /dev/null
+++ b/images/emoji/1f61c.png
Binary files differ
diff --git a/images/emoji/1f61d.png b/images/emoji/1f61d.png
new file mode 100644
index 000000000..5c0401e9b
--- /dev/null
+++ b/images/emoji/1f61d.png
Binary files differ
diff --git a/images/emoji/1f61e.png b/images/emoji/1f61e.png
new file mode 100644
index 000000000..efe4e67e2
--- /dev/null
+++ b/images/emoji/1f61e.png
Binary files differ
diff --git a/images/emoji/1f61f.png b/images/emoji/1f61f.png
new file mode 100644
index 000000000..7074afcf5
--- /dev/null
+++ b/images/emoji/1f61f.png
Binary files differ
diff --git a/images/emoji/1f622.png b/images/emoji/1f622.png
new file mode 100644
index 000000000..b7877f8a1
--- /dev/null
+++ b/images/emoji/1f622.png
Binary files differ
diff --git a/images/emoji/1f628.png b/images/emoji/1f628.png
new file mode 100644
index 000000000..eb8b347ce
--- /dev/null
+++ b/images/emoji/1f628.png
Binary files differ
diff --git a/images/emoji/1f62a.png b/images/emoji/1f62a.png
new file mode 100644
index 000000000..836b41077
--- /dev/null
+++ b/images/emoji/1f62a.png
Binary files differ
diff --git a/images/emoji/1f62b.png b/images/emoji/1f62b.png
new file mode 100644
index 000000000..19aba1bc1
--- /dev/null
+++ b/images/emoji/1f62b.png
Binary files differ
diff --git a/images/emoji/1f62c.png b/images/emoji/1f62c.png
new file mode 100644
index 000000000..871b2f071
--- /dev/null
+++ b/images/emoji/1f62c.png
Binary files differ
diff --git a/images/emoji/1f62d.png b/images/emoji/1f62d.png
new file mode 100644
index 000000000..e4f818360
--- /dev/null
+++ b/images/emoji/1f62d.png
Binary files differ
diff --git a/images/emoji/1f62e.png b/images/emoji/1f62e.png
new file mode 100644
index 000000000..a62cd27e1
--- /dev/null
+++ b/images/emoji/1f62e.png
Binary files differ
diff --git a/images/emoji/1f62f.png b/images/emoji/1f62f.png
new file mode 100644
index 000000000..cad0e2313
--- /dev/null
+++ b/images/emoji/1f62f.png
Binary files differ
diff --git a/images/emoji/1f631.png b/images/emoji/1f631.png
new file mode 100644
index 000000000..6ab43a0d3
--- /dev/null
+++ b/images/emoji/1f631.png
Binary files differ
diff --git a/images/emoji/1f634.png b/images/emoji/1f634.png
new file mode 100644
index 000000000..9ecf600d6
--- /dev/null
+++ b/images/emoji/1f634.png
Binary files differ
diff --git a/images/emoji/1f64b.png b/images/emoji/1f64b.png
new file mode 100644
index 000000000..7c803b315
--- /dev/null
+++ b/images/emoji/1f64b.png
Binary files differ
diff --git a/images/emoji/1f64f.png b/images/emoji/1f64f.png
new file mode 100644
index 000000000..8347f2435
--- /dev/null
+++ b/images/emoji/1f64f.png
Binary files differ
diff --git a/images/emoji/1f6ab.png b/images/emoji/1f6ab.png
new file mode 100644
index 000000000..d2efd65e7
--- /dev/null
+++ b/images/emoji/1f6ab.png
Binary files differ
diff --git a/images/emoji/1f918.png b/images/emoji/1f918.png
new file mode 100644
index 000000000..4aa6e7e0a
--- /dev/null
+++ b/images/emoji/1f918.png
Binary files differ
diff --git a/images/emoji/1f919.png b/images/emoji/1f919.png
new file mode 100644
index 000000000..a10c59ba7
--- /dev/null
+++ b/images/emoji/1f919.png
Binary files differ
diff --git a/images/emoji/1f91d.png b/images/emoji/1f91d.png
new file mode 100644
index 000000000..75e8d58e9
--- /dev/null
+++ b/images/emoji/1f91d.png
Binary files differ
diff --git a/images/emoji/262e.png b/images/emoji/262e.png
new file mode 100644
index 000000000..86033faf4
--- /dev/null
+++ b/images/emoji/262e.png
Binary files differ
diff --git a/images/emoji/263a.png b/images/emoji/263a.png
new file mode 100644
index 000000000..e9e53c03d
--- /dev/null
+++ b/images/emoji/263a.png
Binary files differ
diff --git a/images/emoji/2665.png b/images/emoji/2665.png
new file mode 100644
index 000000000..393c3ed52
--- /dev/null
+++ b/images/emoji/2665.png
Binary files differ
diff --git a/images/emoji/26a1.png b/images/emoji/26a1.png
new file mode 100644
index 000000000..47e68e48e
--- /dev/null
+++ b/images/emoji/26a1.png
Binary files differ
diff --git a/images/emoji/270c.png b/images/emoji/270c.png
new file mode 100644
index 000000000..70c5516ff
--- /dev/null
+++ b/images/emoji/270c.png
Binary files differ
diff --git a/images/emoji/2714.png b/images/emoji/2714.png
new file mode 100644
index 000000000..03bd69537
--- /dev/null
+++ b/images/emoji/2714.png
Binary files differ
diff --git a/images/emoji/2716.png b/images/emoji/2716.png
new file mode 100644
index 000000000..e47cc1b68
--- /dev/null
+++ b/images/emoji/2716.png
Binary files differ
diff --git a/images/emoji/2754.png b/images/emoji/2754.png
new file mode 100644
index 000000000..6e7824c75
--- /dev/null
+++ b/images/emoji/2754.png
Binary files differ
diff --git a/images/emoji/README b/images/emoji/README
new file mode 100644
index 000000000..ab478b753
--- /dev/null
+++ b/images/emoji/README
@@ -0,0 +1,2 @@
+These files supplied by emojione. License is CC BY 4.0. Attribution is required for commercial use.
+See http://emojione.com