aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Like.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-24 22:14:24 +0000
committerMario <mario@mariovavti.com>2020-11-24 22:14:24 +0000
commitae11b2c2818fce5161e3367e5677e28ea5686891 (patch)
treebc4d9646d521ab0925c132ba0de258ff04d08fdb /Zotlabs/Module/Like.php
parentf43577ec278b5036db7e96eee580c959f7c00c47 (diff)
downloadvolse-hubzilla-ae11b2c2818fce5161e3367e5677e28ea5686891.tar.gz
volse-hubzilla-ae11b2c2818fce5161e3367e5677e28ea5686891.tar.bz2
volse-hubzilla-ae11b2c2818fce5161e3367e5677e28ea5686891.zip
profile_load() requires channel_address
Diffstat (limited to 'Zotlabs/Module/Like.php')
-rw-r--r--Zotlabs/Module/Like.php7
1 files changed, 5 insertions, 2 deletions
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();