remove pre zot6 compatibility tweaks

This commit is contained in:
Mario Vavti
2023-04-13 11:01:57 +02:00
parent 6ddf1a5786
commit 0b7bece8e3

View File

@@ -2353,19 +2353,6 @@ class Libzot {
'deleted' => (intval($hub['hubloc_deleted']) ? true : false)
];
// version compatibility tweaks
if (!strpos($z['url_sig'], '.')) {
$z['url_sig'] = 'sha256.' . $z['url_sig'];
}
if (!$z['id_url']) {
$z['id_url'] = $z['url'] . '/channel/' . substr($z['address'], 0, strpos($z['address'], '@'));
}
if (!$z['site_id']) {
$z['site_id'] = Libzot::make_xchan_hash($z['url'], $z['sitekey']);
}
$ret[] = $z;
}
}