This commit is contained in:
syuilo 2018-08-22 09:16:52 +09:00
parent 4bf3827b73
commit 2536bfb5f5
2 changed files with 6 additions and 3 deletions

View file

@ -131,7 +131,8 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
endpoints: person.endpoints,
uri: person.id,
url: person.url,
isBot
isBot: isBot,
isCat: (person as any).isCat === true ? true : false
}) as IRemoteUser;
} catch (e) {
// duplicate key error
@ -262,7 +263,8 @@ export async function updatePerson(value: string | IObject, resolver?: Resolver)
notesCount,
name: person.name,
url: person.url,
endpoints: person.endpoints
endpoints: person.endpoints,
isCat: (person as any).isCat === true ? true : false
}
});
}

View file

@ -29,6 +29,7 @@ export default async (user: ILocalUser) => {
icon: user.avatarId && renderImage(avatar),
image: user.bannerId && renderImage(banner),
manuallyApprovesFollowers: user.isLocked,
publicKey: renderKey(user)
publicKey: renderKey(user),
isCat: user.isCat
};
};