mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:15:13 +00:00
fix hubloc_id_url also
This commit is contained in:
parent
2301f2c5a1
commit
cd90777384
3 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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'])
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue