diff options
author | Mario <mario@mariovavti.com> | 2020-11-24 22:14:24 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-24 22:14:24 +0000 |
commit | ae11b2c2818fce5161e3367e5677e28ea5686891 (patch) | |
tree | bc4d9646d521ab0925c132ba0de258ff04d08fdb /Zotlabs | |
parent | f43577ec278b5036db7e96eee580c959f7c00c47 (diff) | |
download | volse-hubzilla-ae11b2c2818fce5161e3367e5677e28ea5686891.tar.gz volse-hubzilla-ae11b2c2818fce5161e3367e5677e28ea5686891.tar.bz2 volse-hubzilla-ae11b2c2818fce5161e3367e5677e28ea5686891.zip |
profile_load() requires channel_address
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Item.php | 2 | ||||
-rw-r--r-- | 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(); |