getApId, InboxProcessorService
This commit is contained in:
parent
29d9bbf05b
commit
aed28060e7
|
@ -55,7 +55,7 @@ export function getOneApId(value: ApObject): string {
|
||||||
export function getApId(value: string | IObject): string {
|
export function getApId(value: string | IObject): string {
|
||||||
if (typeof value === 'string') return value;
|
if (typeof value === 'string') return value;
|
||||||
if (typeof value.id === 'string') return value.id;
|
if (typeof value.id === 'string') return value.id;
|
||||||
throw new Error('cannot detemine id');
|
throw new Error('cannot determine id');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -69,7 +69,7 @@ export class InboxProcessorService {
|
||||||
this.logger.debug(JSON.stringify(info, null, 2));
|
this.logger.debug(JSON.stringify(info, null, 2));
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
const host = this.utilityService.toPuny(new URL(activity.actor).hostname);
|
const host = this.utilityService.toPuny(new URL(actorUri).hostname);
|
||||||
|
|
||||||
// ブロックしてたら中断
|
// ブロックしてたら中断
|
||||||
const meta = await this.metaService.fetch();
|
const meta = await this.metaService.fetch();
|
||||||
|
|
Loading…
Reference in New Issue