aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Like.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-04 21:24:21 +0000
committerMario <mario@mariovavti.com>2024-03-04 21:24:21 +0000
commitd7ceb977daec6aa07ba3a8e4bbc1d493d59509d1 (patch)
tree8095858670f3158e48412e7f04a028d5056bc305 /Zotlabs/Module/Like.php
parent3f32a5239d7d95410de9b53396a8751556a41ec5 (diff)
downloadvolse-hubzilla-d7ceb977daec6aa07ba3a8e4bbc1d493d59509d1.tar.gz
volse-hubzilla-d7ceb977daec6aa07ba3a8e4bbc1d493d59509d1.tar.bz2
volse-hubzilla-d7ceb977daec6aa07ba3a8e4bbc1d493d59509d1.zip
basic AS2 support for things
Diffstat (limited to 'Zotlabs/Module/Like.php')
-rw-r--r--Zotlabs/Module/Like.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php
index 86ae48365..4460900a8 100644
--- a/Zotlabs/Module/Like.php
+++ b/Zotlabs/Module/Like.php
@@ -211,7 +211,7 @@ class Like extends Controller {
$post_type = t('thing');
$obj_type = 'Profile';
- $tgttype = ACTIVITY_OBJ_THING;
+ $tgttype = 'Page';
$links = array();
$links[] = array('rel' => 'alternate', 'type' => 'text/html',
@@ -219,12 +219,7 @@ class Like extends Controller {
if ($r[0]['imgurl'])
$links[] = array('rel' => 'photo', 'href' => $r[0]['obj_imgurl']);
- $target = json_encode(array(
- 'type' => $tgttype,
- 'title' => $r[0]['obj_term'],
- 'id' => z_root() . '/thing/' . $r[0]['obj_obj'],
- 'link' => $links
- ));
+ $target = Activity::fetch_thing(['id' => $r[0]['obj_obj']]);
$plink = '[zrl=' . z_root() . '/thing/' . $r[0]['obj_obj'] . ']' . $r[0]['obj_term'] . '[/zrl]';