Rename Conf.url() to Conf.local(), replace it with a URL of localDomain

This commit is contained in:
Alex Gleason
2023-07-09 18:26:33 -05:00
parent 5ec40f285d
commit be6aa89c39
7 changed files with 16 additions and 15 deletions

View File

@@ -28,7 +28,7 @@ function auth98(opts: Auth98Opts = {}): AppMiddleware {
.refine((event) => {
const url = findTag(event.tags, 'u')?.[1];
try {
return url === Conf.url(c.req.url);
return url === Conf.local(c.req.url);
} catch (_e) {
return false;
}