fix hubloc_id_url also

This commit is contained in:
Mike Macgirvin 2024-08-10 15:29:11 +10:00
parent 2301f2c5a1
commit cd90777384
3 changed files with 6 additions and 1 deletions

View file

@ -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);

View file

@ -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),

View file

@ -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'])
);
}
}
}