Update activitypub.ts
This commit is contained in:
parent
ba6b1f66fe
commit
43d96afaaa
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue