This commit is contained in:
tamaina 2024-02-26 21:31:43 +00:00
parent 5b7b8503cd
commit 00738b90c2
1 changed files with 6 additions and 4 deletions

View File

@ -171,10 +171,12 @@ export class ApDbResolverService implements OnApplicationShutdown {
keys.find(x => { keys.find(x => {
try { try {
const url = new URL(x.keyId); const url = new URL(x.keyId);
if ( const path = url.pathname.split('/').pop()?.toLowerCase();
url.hash.toLowerCase().includes('main') || if (url.hash) {
url.pathname.split('/').pop()?.toLowerCase().includes('main') if (url.hash.toLowerCase().includes('main')) {
) { return true;
}
} else if (path?.includes('main') || path === 'publickey') {
return true; return true;
} }
} catch { /* noop */ } } catch { /* noop */ }