mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-01 07:35:57 +09:00
Fix
This commit is contained in:
parent
509cdae832
commit
247f334334
@ -93,6 +93,8 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
|
|||||||
|
|
||||||
const host = toUnicode(finger.subject.replace(/^.*?@/, '')).toLowerCase();
|
const host = toUnicode(finger.subject.replace(/^.*?@/, '')).toLowerCase();
|
||||||
|
|
||||||
|
const isBot = object.type == 'Service';
|
||||||
|
|
||||||
// Create user
|
// Create user
|
||||||
let user: IRemoteUser;
|
let user: IRemoteUser;
|
||||||
try {
|
try {
|
||||||
@ -117,7 +119,8 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
|
|||||||
inbox: person.inbox,
|
inbox: person.inbox,
|
||||||
endpoints: person.endpoints,
|
endpoints: person.endpoints,
|
||||||
uri: person.id,
|
uri: person.id,
|
||||||
url: person.url
|
url: person.url,
|
||||||
|
isBot
|
||||||
}) as IRemoteUser;
|
}) as IRemoteUser;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// duplicate key error
|
// duplicate key error
|
||||||
|
Loading…
Reference in New Issue
Block a user