mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-04 14:14:24 +01:00
Rename Conf.url() to Conf.local(), replace it with a URL of localDomain
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user