From d7ceb977daec6aa07ba3a8e4bbc1d493d59509d1 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 4 Mar 2024 21:24:21 +0000 Subject: basic AS2 support for things --- Zotlabs/Module/Like.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Zotlabs/Module/Like.php') 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]'; -- cgit v1.2.3