From ae11b2c2818fce5161e3367e5677e28ea5686891 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 24 Nov 2020 22:14:24 +0000 Subject: profile_load() requires channel_address --- Zotlabs/Module/Item.php | 2 +- Zotlabs/Module/Like.php | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 3a74200c4..7c438c309 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -1377,7 +1377,7 @@ class Item extends Controller { } if($mode === 'channel') - profile_load($owner_xchan['xchan_name']); + profile_load($channel['channel_address']); $item[] = $datarray; $item[0]['owner'] = $owner_xchan; diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php index 6b7efb98b..bb5c6db7a 100644 --- a/Zotlabs/Module/Like.php +++ b/Zotlabs/Module/Like.php @@ -41,8 +41,11 @@ class Like extends \Zotlabs\Web\Controller { private function like_response($arr) { - if($arr['conv_mode'] === 'channel') - profile_load($arr['owner_xchan']['xchan_name']); + if($arr['conv_mode'] === 'channel') { + $parts = explode('@', $arr['owner_xchan']['xchan_addr']); + profile_load($parts[0]); + } + $item_normal = item_normal(); -- cgit v1.2.3