Commit ae11b2c2 authored by Mario's avatar Mario
Browse files

profile_load() requires channel_address

parent f43577ec
Pipeline #365963 passed with stage
in 6 minutes and 38 seconds
......@@ -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;
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment