mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
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 {
|
||||
if (typeof value === 'string') return value;
|
||||
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));
|
||||
//#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();
|
||||
|
Loading…
Reference in New Issue
Block a user