Update activitypub.ts
This commit is contained in:
parent
4a4f0f5579
commit
cb7d9f666b
|
@ -121,10 +121,10 @@ describe('ActivityPub', () => {
|
||||||
imports: [GlobalModule, CoreModule],
|
imports: [GlobalModule, CoreModule],
|
||||||
})
|
})
|
||||||
.overrideProvider(DownloadService).useValue({
|
.overrideProvider(DownloadService).useValue({
|
||||||
async downloadUrl(url, path): Promise<{ filename: string }> {
|
async downloadUrl(url: string, path: string): Promise<{ filename: string }> {
|
||||||
if (url.endsWith('.png')) {
|
if (url.endsWith('.png')) {
|
||||||
fs.copyFileSync(
|
fs.copyFileSync(
|
||||||
`${__dirname}/../resources/hw.png`,
|
'../resources/hw.png',
|
||||||
path,
|
path,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue