diff options
-rw-r--r-- | Zotlabs/Module/React.php | 50 | ||||
-rw-r--r-- | images/emoji/1f37a.png | bin | 0 -> 1340 bytes | |||
-rw-r--r-- | images/emoji/1f37b.png | bin | 0 -> 2100 bytes | |||
-rw-r--r-- | images/emoji/1f37e.png | bin | 0 -> 1205 bytes | |||
-rw-r--r-- | images/emoji/1f3a4.png | bin | 0 -> 1165 bytes | |||
-rw-r--r-- | images/emoji/1f3b5.png | bin | 0 -> 419 bytes | |||
-rw-r--r-- | images/emoji/1f3c6.png | bin | 0 -> 863 bytes | |||
-rw-r--r-- | images/emoji/1f44b.png | bin | 0 -> 1311 bytes | |||
-rw-r--r-- | images/emoji/1f44c.png | bin | 0 -> 979 bytes | |||
-rw-r--r-- | images/emoji/1f44d.png | bin | 0 -> 814 bytes | |||
-rw-r--r-- | images/emoji/1f44e.png | bin | 0 -> 815 bytes | |||
-rw-r--r-- | images/emoji/1f44f.png | bin | 0 -> 1456 bytes | |||
-rw-r--r-- | images/emoji/1f47d.png | bin | 0 -> 839 bytes | |||
-rw-r--r-- | images/emoji/1f48b.png | bin | 0 -> 842 bytes | |||
-rw-r--r-- | images/emoji/1f493.png | bin | 0 -> 699 bytes | |||
-rw-r--r-- | images/emoji/1f497.png | bin | 0 -> 675 bytes | |||
-rw-r--r-- | images/emoji/1f4a3.png | bin | 0 -> 702 bytes | |||
-rw-r--r-- | images/emoji/1f4a4.png | bin | 0 -> 540 bytes | |||
-rw-r--r-- | images/emoji/1f595.png | bin | 0 -> 893 bytes | |||
-rw-r--r-- | images/emoji/1f5a4.png | bin | 0 -> 435 bytes | |||
-rw-r--r-- | images/emoji/1f5e8.png | bin | 0 -> 390 bytes | |||
-rw-r--r-- | images/emoji/1f607.png | bin | 0 -> 935 bytes | |||
-rw-r--r-- | images/emoji/1f608.png | bin | 0 -> 1078 bytes | |||
-rw-r--r-- | images/emoji/1f60a.png | bin | 0 -> 812 bytes | |||
-rw-r--r-- | images/emoji/1f60b.png | bin | 0 -> 896 bytes | |||
-rw-r--r-- | images/emoji/1f60c.png | bin | 0 -> 785 bytes | |||
-rw-r--r-- | images/emoji/1f60d.png | bin | 0 -> 1069 bytes | |||
-rw-r--r-- | images/emoji/1f60e.png | bin | 0 -> 824 bytes | |||
-rw-r--r-- | images/emoji/1f60f.png | bin | 0 -> 775 bytes | |||
-rw-r--r-- | images/emoji/1f619.png | bin | 0 -> 648 bytes | |||
-rw-r--r-- | images/emoji/1f61a.png | bin | 0 -> 888 bytes | |||
-rw-r--r-- | images/emoji/1f61b.png | bin | 0 -> 752 bytes | |||
-rw-r--r-- | images/emoji/1f61c.png | bin | 0 -> 1061 bytes | |||
-rw-r--r-- | images/emoji/1f61d.png | bin | 0 -> 867 bytes | |||
-rw-r--r-- | images/emoji/1f61e.png | bin | 0 -> 757 bytes | |||
-rw-r--r-- | images/emoji/1f61f.png | bin | 0 -> 715 bytes | |||
-rw-r--r-- | images/emoji/1f622.png | bin | 0 -> 1123 bytes | |||
-rw-r--r-- | images/emoji/1f628.png | bin | 0 -> 1002 bytes | |||
-rw-r--r-- | images/emoji/1f62a.png | bin | 0 -> 1185 bytes | |||
-rw-r--r-- | images/emoji/1f62b.png | bin | 0 -> 1132 bytes | |||
-rw-r--r-- | images/emoji/1f62c.png | bin | 0 -> 694 bytes | |||
-rw-r--r-- | images/emoji/1f62d.png | bin | 0 -> 1241 bytes | |||
-rw-r--r-- | images/emoji/1f62e.png | bin | 0 -> 575 bytes | |||
-rw-r--r-- | images/emoji/1f62f.png | bin | 0 -> 634 bytes | |||
-rw-r--r-- | images/emoji/1f631.png | bin | 0 -> 1588 bytes | |||
-rw-r--r-- | images/emoji/1f634.png | bin | 0 -> 1075 bytes | |||
-rw-r--r-- | images/emoji/1f64b.png | bin | 0 -> 1669 bytes | |||
-rw-r--r-- | images/emoji/1f64f.png | bin | 0 -> 1122 bytes | |||
-rw-r--r-- | images/emoji/1f6ab.png | bin | 0 -> 555 bytes | |||
-rw-r--r-- | images/emoji/1f918.png | bin | 0 -> 894 bytes | |||
-rw-r--r-- | images/emoji/1f919.png | bin | 0 -> 894 bytes | |||
-rw-r--r-- | images/emoji/1f91d.png | bin | 0 -> 1369 bytes | |||
-rw-r--r-- | images/emoji/262e.png | bin | 0 -> 933 bytes | |||
-rw-r--r-- | images/emoji/263a.png | bin | 0 -> 636 bytes | |||
-rw-r--r-- | images/emoji/2665.png | bin | 0 -> 449 bytes | |||
-rw-r--r-- | images/emoji/26a1.png | bin | 0 -> 413 bytes | |||
-rw-r--r-- | images/emoji/270c.png | bin | 0 -> 1009 bytes | |||
-rw-r--r-- | images/emoji/2714.png | bin | 0 -> 438 bytes | |||
-rw-r--r-- | images/emoji/2716.png | bin | 0 -> 298 bytes | |||
-rw-r--r-- | images/emoji/2754.png | bin | 0 -> 449 bytes | |||
-rw-r--r-- | images/emoji/README | 2 |
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 Binary files differnew file mode 100644 index 000000000..894da40a7 --- /dev/null +++ b/images/emoji/1f37a.png diff --git a/images/emoji/1f37b.png b/images/emoji/1f37b.png Binary files differnew file mode 100644 index 000000000..b55deb66b --- /dev/null +++ b/images/emoji/1f37b.png diff --git a/images/emoji/1f37e.png b/images/emoji/1f37e.png Binary files differnew file mode 100644 index 000000000..285a79a93 --- /dev/null +++ b/images/emoji/1f37e.png diff --git a/images/emoji/1f3a4.png b/images/emoji/1f3a4.png Binary files differnew file mode 100644 index 000000000..d4e6b0def --- /dev/null +++ b/images/emoji/1f3a4.png diff --git a/images/emoji/1f3b5.png b/images/emoji/1f3b5.png Binary files differnew file mode 100644 index 000000000..06691ef61 --- /dev/null +++ b/images/emoji/1f3b5.png diff --git a/images/emoji/1f3c6.png b/images/emoji/1f3c6.png Binary files differnew file mode 100644 index 000000000..ac2895c18 --- /dev/null +++ b/images/emoji/1f3c6.png diff --git a/images/emoji/1f44b.png b/images/emoji/1f44b.png Binary files differnew file mode 100644 index 000000000..02ae68b85 --- /dev/null +++ b/images/emoji/1f44b.png diff --git a/images/emoji/1f44c.png b/images/emoji/1f44c.png Binary files differnew file mode 100644 index 000000000..028d69b0d --- /dev/null +++ b/images/emoji/1f44c.png diff --git a/images/emoji/1f44d.png b/images/emoji/1f44d.png Binary files differnew file mode 100644 index 000000000..f9e6f13a3 --- /dev/null +++ b/images/emoji/1f44d.png diff --git a/images/emoji/1f44e.png b/images/emoji/1f44e.png Binary files differnew file mode 100644 index 000000000..b63da2f20 --- /dev/null +++ b/images/emoji/1f44e.png diff --git a/images/emoji/1f44f.png b/images/emoji/1f44f.png Binary files differnew file mode 100644 index 000000000..b0ffe9289 --- /dev/null +++ b/images/emoji/1f44f.png diff --git a/images/emoji/1f47d.png b/images/emoji/1f47d.png Binary files differnew file mode 100644 index 000000000..3b90e9743 --- /dev/null +++ b/images/emoji/1f47d.png diff --git a/images/emoji/1f48b.png b/images/emoji/1f48b.png Binary files differnew file mode 100644 index 000000000..85e6dcfc4 --- /dev/null +++ b/images/emoji/1f48b.png diff --git a/images/emoji/1f493.png b/images/emoji/1f493.png Binary files differnew file mode 100644 index 000000000..0bcf2d1d5 --- /dev/null +++ b/images/emoji/1f493.png diff --git a/images/emoji/1f497.png b/images/emoji/1f497.png Binary files differnew file mode 100644 index 000000000..d6e694e97 --- /dev/null +++ b/images/emoji/1f497.png diff --git a/images/emoji/1f4a3.png b/images/emoji/1f4a3.png Binary files differnew file mode 100644 index 000000000..c7f8f81c9 --- /dev/null +++ b/images/emoji/1f4a3.png diff --git a/images/emoji/1f4a4.png b/images/emoji/1f4a4.png Binary files differnew file mode 100644 index 000000000..9bc72b446 --- /dev/null +++ b/images/emoji/1f4a4.png diff --git a/images/emoji/1f595.png b/images/emoji/1f595.png Binary files differnew file mode 100644 index 000000000..697f7a25e --- /dev/null +++ b/images/emoji/1f595.png diff --git a/images/emoji/1f5a4.png b/images/emoji/1f5a4.png Binary files differnew file mode 100644 index 000000000..b4068c3e6 --- /dev/null +++ b/images/emoji/1f5a4.png diff --git a/images/emoji/1f5e8.png b/images/emoji/1f5e8.png Binary files differnew file mode 100644 index 000000000..00c05959b --- /dev/null +++ b/images/emoji/1f5e8.png diff --git a/images/emoji/1f607.png b/images/emoji/1f607.png Binary files differnew file mode 100644 index 000000000..57f515112 --- /dev/null +++ b/images/emoji/1f607.png diff --git a/images/emoji/1f608.png b/images/emoji/1f608.png Binary files differnew file mode 100644 index 000000000..cc2c5f1ec --- /dev/null +++ b/images/emoji/1f608.png diff --git a/images/emoji/1f60a.png b/images/emoji/1f60a.png Binary files differnew file mode 100644 index 000000000..aac1a424a --- /dev/null +++ b/images/emoji/1f60a.png diff --git a/images/emoji/1f60b.png b/images/emoji/1f60b.png Binary files differnew file mode 100644 index 000000000..2df15753c --- /dev/null +++ b/images/emoji/1f60b.png diff --git a/images/emoji/1f60c.png b/images/emoji/1f60c.png Binary files differnew file mode 100644 index 000000000..715ad0bf5 --- /dev/null +++ b/images/emoji/1f60c.png diff --git a/images/emoji/1f60d.png b/images/emoji/1f60d.png Binary files differnew file mode 100644 index 000000000..73fbee29d --- /dev/null +++ b/images/emoji/1f60d.png diff --git a/images/emoji/1f60e.png b/images/emoji/1f60e.png Binary files differnew file mode 100644 index 000000000..200117351 --- /dev/null +++ b/images/emoji/1f60e.png diff --git a/images/emoji/1f60f.png b/images/emoji/1f60f.png Binary files differnew file mode 100644 index 000000000..878521099 --- /dev/null +++ b/images/emoji/1f60f.png diff --git a/images/emoji/1f619.png b/images/emoji/1f619.png Binary files differnew file mode 100644 index 000000000..e181f1709 --- /dev/null +++ b/images/emoji/1f619.png diff --git a/images/emoji/1f61a.png b/images/emoji/1f61a.png Binary files differnew file mode 100644 index 000000000..b684d7d4d --- /dev/null +++ b/images/emoji/1f61a.png diff --git a/images/emoji/1f61b.png b/images/emoji/1f61b.png Binary files differnew file mode 100644 index 000000000..25757341f --- /dev/null +++ b/images/emoji/1f61b.png diff --git a/images/emoji/1f61c.png b/images/emoji/1f61c.png Binary files differnew file mode 100644 index 000000000..4817eaa3d --- /dev/null +++ b/images/emoji/1f61c.png diff --git a/images/emoji/1f61d.png b/images/emoji/1f61d.png Binary files differnew file mode 100644 index 000000000..5c0401e9b --- /dev/null +++ b/images/emoji/1f61d.png diff --git a/images/emoji/1f61e.png b/images/emoji/1f61e.png Binary files differnew file mode 100644 index 000000000..efe4e67e2 --- /dev/null +++ b/images/emoji/1f61e.png diff --git a/images/emoji/1f61f.png b/images/emoji/1f61f.png Binary files differnew file mode 100644 index 000000000..7074afcf5 --- /dev/null +++ b/images/emoji/1f61f.png diff --git a/images/emoji/1f622.png b/images/emoji/1f622.png Binary files differnew file mode 100644 index 000000000..b7877f8a1 --- /dev/null +++ b/images/emoji/1f622.png diff --git a/images/emoji/1f628.png b/images/emoji/1f628.png Binary files differnew file mode 100644 index 000000000..eb8b347ce --- /dev/null +++ b/images/emoji/1f628.png diff --git a/images/emoji/1f62a.png b/images/emoji/1f62a.png Binary files differnew file mode 100644 index 000000000..836b41077 --- /dev/null +++ b/images/emoji/1f62a.png diff --git a/images/emoji/1f62b.png b/images/emoji/1f62b.png Binary files differnew file mode 100644 index 000000000..19aba1bc1 --- /dev/null +++ b/images/emoji/1f62b.png diff --git a/images/emoji/1f62c.png b/images/emoji/1f62c.png Binary files differnew file mode 100644 index 000000000..871b2f071 --- /dev/null +++ b/images/emoji/1f62c.png diff --git a/images/emoji/1f62d.png b/images/emoji/1f62d.png Binary files differnew file mode 100644 index 000000000..e4f818360 --- /dev/null +++ b/images/emoji/1f62d.png diff --git a/images/emoji/1f62e.png b/images/emoji/1f62e.png Binary files differnew file mode 100644 index 000000000..a62cd27e1 --- /dev/null +++ b/images/emoji/1f62e.png diff --git a/images/emoji/1f62f.png b/images/emoji/1f62f.png Binary files differnew file mode 100644 index 000000000..cad0e2313 --- /dev/null +++ b/images/emoji/1f62f.png diff --git a/images/emoji/1f631.png b/images/emoji/1f631.png Binary files differnew file mode 100644 index 000000000..6ab43a0d3 --- /dev/null +++ b/images/emoji/1f631.png diff --git a/images/emoji/1f634.png b/images/emoji/1f634.png Binary files differnew file mode 100644 index 000000000..9ecf600d6 --- /dev/null +++ b/images/emoji/1f634.png diff --git a/images/emoji/1f64b.png b/images/emoji/1f64b.png Binary files differnew file mode 100644 index 000000000..7c803b315 --- /dev/null +++ b/images/emoji/1f64b.png diff --git a/images/emoji/1f64f.png b/images/emoji/1f64f.png Binary files differnew file mode 100644 index 000000000..8347f2435 --- /dev/null +++ b/images/emoji/1f64f.png diff --git a/images/emoji/1f6ab.png b/images/emoji/1f6ab.png Binary files differnew file mode 100644 index 000000000..d2efd65e7 --- /dev/null +++ b/images/emoji/1f6ab.png diff --git a/images/emoji/1f918.png b/images/emoji/1f918.png Binary files differnew file mode 100644 index 000000000..4aa6e7e0a --- /dev/null +++ b/images/emoji/1f918.png diff --git a/images/emoji/1f919.png b/images/emoji/1f919.png Binary files differnew file mode 100644 index 000000000..a10c59ba7 --- /dev/null +++ b/images/emoji/1f919.png diff --git a/images/emoji/1f91d.png b/images/emoji/1f91d.png Binary files differnew file mode 100644 index 000000000..75e8d58e9 --- /dev/null +++ b/images/emoji/1f91d.png diff --git a/images/emoji/262e.png b/images/emoji/262e.png Binary files differnew file mode 100644 index 000000000..86033faf4 --- /dev/null +++ b/images/emoji/262e.png diff --git a/images/emoji/263a.png b/images/emoji/263a.png Binary files differnew file mode 100644 index 000000000..e9e53c03d --- /dev/null +++ b/images/emoji/263a.png diff --git a/images/emoji/2665.png b/images/emoji/2665.png Binary files differnew file mode 100644 index 000000000..393c3ed52 --- /dev/null +++ b/images/emoji/2665.png diff --git a/images/emoji/26a1.png b/images/emoji/26a1.png Binary files differnew file mode 100644 index 000000000..47e68e48e --- /dev/null +++ b/images/emoji/26a1.png diff --git a/images/emoji/270c.png b/images/emoji/270c.png Binary files differnew file mode 100644 index 000000000..70c5516ff --- /dev/null +++ b/images/emoji/270c.png diff --git a/images/emoji/2714.png b/images/emoji/2714.png Binary files differnew file mode 100644 index 000000000..03bd69537 --- /dev/null +++ b/images/emoji/2714.png diff --git a/images/emoji/2716.png b/images/emoji/2716.png Binary files differnew file mode 100644 index 000000000..e47cc1b68 --- /dev/null +++ b/images/emoji/2716.png diff --git a/images/emoji/2754.png b/images/emoji/2754.png Binary files differnew file mode 100644 index 000000000..6e7824c75 --- /dev/null +++ b/images/emoji/2754.png 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 |