aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-05-02 21:18:54 -0700
committerzotlabs <mike@macgirvin.com>2019-05-02 21:18:54 -0700
commitf55f5fa92a60c27bc14069d8046cf26550ec5053 (patch)
tree3f30005a9c16dfad2b02dc9dcb751a10cf93c81a /Zotlabs/Module
parent347e88dc65b1240dc6d1690570531dc3015a4452 (diff)
downloadvolse-hubzilla-f55f5fa92a60c27bc14069d8046cf26550ec5053.tar.gz
volse-hubzilla-f55f5fa92a60c27bc14069d8046cf26550ec5053.tar.bz2
volse-hubzilla-f55f5fa92a60c27bc14069d8046cf26550ec5053.zip
emojireaction compat
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/React.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zotlabs/Module/React.php b/Zotlabs/Module/React.php
index 3920301f5..f80b04a3f 100644
--- a/Zotlabs/Module/React.php
+++ b/Zotlabs/Module/React.php
@@ -59,6 +59,14 @@ class React extends \Zotlabs\Web\Controller {
$n['body'] = "\n\n[zmg=32x32]" . z_root() . '/images/emoji/' . $emoji . '.png[/zmg]' . "\n\n";
$n['author_xchan'] = $channel['channel_hash'];
+ $n['tgt_type'] = 'Image';
+ $n['target'] = [
+ 'type' => 'Image',
+ 'name' => $emoji,
+ 'url' => z_root() . '/images/emoji/' . $emoji . '.png'
+ ];
+
+
$x = item_store($n);
retain_item($postid);