experimental emoji support
50
Zotlabs/Module/React.php
Normal file
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
BIN
images/emoji/1f37a.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
images/emoji/1f37b.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
images/emoji/1f37e.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
images/emoji/1f3a4.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/emoji/1f3b5.png
Normal file
After Width: | Height: | Size: 419 B |
BIN
images/emoji/1f3c6.png
Normal file
After Width: | Height: | Size: 863 B |
BIN
images/emoji/1f44b.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
images/emoji/1f44c.png
Normal file
After Width: | Height: | Size: 979 B |
BIN
images/emoji/1f44d.png
Normal file
After Width: | Height: | Size: 814 B |
BIN
images/emoji/1f44e.png
Normal file
After Width: | Height: | Size: 815 B |
BIN
images/emoji/1f44f.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
images/emoji/1f47d.png
Normal file
After Width: | Height: | Size: 839 B |
BIN
images/emoji/1f48b.png
Normal file
After Width: | Height: | Size: 842 B |
BIN
images/emoji/1f493.png
Normal file
After Width: | Height: | Size: 699 B |
BIN
images/emoji/1f497.png
Normal file
After Width: | Height: | Size: 675 B |
BIN
images/emoji/1f4a3.png
Normal file
After Width: | Height: | Size: 702 B |
BIN
images/emoji/1f4a4.png
Normal file
After Width: | Height: | Size: 540 B |
BIN
images/emoji/1f595.png
Normal file
After Width: | Height: | Size: 893 B |
BIN
images/emoji/1f5a4.png
Normal file
After Width: | Height: | Size: 435 B |
BIN
images/emoji/1f5e8.png
Normal file
After Width: | Height: | Size: 390 B |
BIN
images/emoji/1f607.png
Normal file
After Width: | Height: | Size: 935 B |
BIN
images/emoji/1f608.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/emoji/1f60a.png
Normal file
After Width: | Height: | Size: 812 B |
BIN
images/emoji/1f60b.png
Normal file
After Width: | Height: | Size: 896 B |
BIN
images/emoji/1f60c.png
Normal file
After Width: | Height: | Size: 785 B |
BIN
images/emoji/1f60d.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
images/emoji/1f60e.png
Normal file
After Width: | Height: | Size: 824 B |
BIN
images/emoji/1f60f.png
Normal file
After Width: | Height: | Size: 775 B |
BIN
images/emoji/1f619.png
Normal file
After Width: | Height: | Size: 648 B |
BIN
images/emoji/1f61a.png
Normal file
After Width: | Height: | Size: 888 B |
BIN
images/emoji/1f61b.png
Normal file
After Width: | Height: | Size: 752 B |
BIN
images/emoji/1f61c.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
images/emoji/1f61d.png
Normal file
After Width: | Height: | Size: 867 B |
BIN
images/emoji/1f61e.png
Normal file
After Width: | Height: | Size: 757 B |
BIN
images/emoji/1f61f.png
Normal file
After Width: | Height: | Size: 715 B |
BIN
images/emoji/1f622.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/emoji/1f628.png
Normal file
After Width: | Height: | Size: 1002 B |
BIN
images/emoji/1f62a.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
images/emoji/1f62b.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/emoji/1f62c.png
Normal file
After Width: | Height: | Size: 694 B |
BIN
images/emoji/1f62d.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
images/emoji/1f62e.png
Normal file
After Width: | Height: | Size: 575 B |
BIN
images/emoji/1f62f.png
Normal file
After Width: | Height: | Size: 634 B |
BIN
images/emoji/1f631.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
images/emoji/1f634.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
images/emoji/1f64b.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
images/emoji/1f64f.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/emoji/1f6ab.png
Normal file
After Width: | Height: | Size: 555 B |
BIN
images/emoji/1f918.png
Normal file
After Width: | Height: | Size: 894 B |
BIN
images/emoji/1f919.png
Normal file
After Width: | Height: | Size: 894 B |
BIN
images/emoji/1f91d.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
images/emoji/262e.png
Normal file
After Width: | Height: | Size: 933 B |
BIN
images/emoji/263a.png
Normal file
After Width: | Height: | Size: 636 B |
BIN
images/emoji/2665.png
Normal file
After Width: | Height: | Size: 449 B |
BIN
images/emoji/26a1.png
Normal file
After Width: | Height: | Size: 413 B |
BIN
images/emoji/270c.png
Normal file
After Width: | Height: | Size: 1009 B |
BIN
images/emoji/2714.png
Normal file
After Width: | Height: | Size: 438 B |
BIN
images/emoji/2716.png
Normal file
After Width: | Height: | Size: 298 B |
BIN
images/emoji/2754.png
Normal file
After Width: | Height: | Size: 449 B |
2
images/emoji/README
Normal file
@ -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
|