Update activitypub.ts

This commit is contained in:
syuilo 2024-09-22 09:42:43 +09:00
parent ba6b1f66fe
commit 43d96afaaa
1 changed files with 2 additions and 6 deletions

View File

@ -24,7 +24,6 @@ import { MiMeta, MiNote, UserProfilesRepository } from '@/models/_.js';
import { DI } from '@/di-symbols.js'; import { DI } from '@/di-symbols.js';
import { secureRndstr } from '@/misc/secure-rndstr.js'; import { secureRndstr } from '@/misc/secure-rndstr.js';
import { DownloadService } from '@/core/DownloadService.js'; import { DownloadService } from '@/core/DownloadService.js';
import { MetaService } from '@/core/MetaService.js';
import type { MiRemoteUser } from '@/models/User.js'; import type { MiRemoteUser } from '@/models/User.js';
import { genAidx } from '@/misc/id/aidx.js'; import { genAidx } from '@/misc/id/aidx.js';
import { MockResolver } from '../misc/mock-resolver.js'; import { MockResolver } from '../misc/mock-resolver.js';
@ -120,11 +119,8 @@ describe('ActivityPub', () => {
}; };
}, },
}) })
.overrideProvider(MetaService).useValue({ .overrideProvider(DI.meta).useValue(meta)
async fetch(): Promise<MiMeta> { .compile();
return meta;
},
}).compile();
await app.init(); await app.init();
app.enableShutdownHooks(); app.enableShutdownHooks();