diff --git a/include/permissions.php b/include/permissions.php index d11cd7dd4..39faea6f7 100644 --- a/include/permissions.php +++ b/include/permissions.php @@ -518,6 +518,7 @@ function check_list_permissions($uid, $arr, $perm) function check_deliver_permissions($item, $arr, $includeMentions = false) { + xdebug_break(); $result = []; $uid = $item['uid'] ?? 0; $terms = ((isset($item['term'])) ? get_terms_oftype($item['term'], [TERM_MENTION, TERM_GROUP]) : false); diff --git a/src/Lib/Channel.php b/src/Lib/Channel.php index 8336c6f35..256f7947a 100644 --- a/src/Lib/Channel.php +++ b/src/Lib/Channel.php @@ -447,7 +447,7 @@ class Channel [ 'hubloc_guid' => $guid, 'hubloc_guid_sig' => $sig, - 'hubloc_id_url' => (($system) ? z_root() : Channel::url($ret['channel'])), + 'hubloc_id_url' => (($system) ? z_root() : Channel::getDidResolver($ret['channel'],true)), 'hubloc_hash' => $hash, 'hubloc_addr' => self::get_webfinger($ret['channel']), 'hubloc_primary' => intval($primary), diff --git a/src/Update/_1283.php b/src/Update/_1283.php index 318d35b8b..73006991f 100644 --- a/src/Update/_1283.php +++ b/src/Update/_1283.php @@ -21,6 +21,10 @@ class _1283 dbesc(Channel::getDidResolver($channel, true)), intval($channel['xchan_id']) ); + q("UPDATE hubloc set hubloc_id_url = '%s' where hubloc_hash = '%s'", + dbesc(Channel::getDidResolver($channel, true)), + intval($channel['xchan_hash']) + ); } } }