mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-28 23:09:16 +09:00
Save remote user's endpoints
This commit is contained in:
parent
34186cf45f
commit
66437f31c0
@ -87,6 +87,7 @@ export interface ILocalUser extends IUserBase {
|
||||
|
||||
export interface IRemoteUser extends IUserBase {
|
||||
inbox: string;
|
||||
endpoints: string[];
|
||||
uri: string;
|
||||
url?: string;
|
||||
publicKey: {
|
||||
|
@ -101,6 +101,7 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
|
||||
publicKeyPem: person.publicKey.publicKeyPem
|
||||
},
|
||||
inbox: person.inbox,
|
||||
endpoints: person.endpoints,
|
||||
uri: person.id,
|
||||
url: person.url
|
||||
}) as IRemoteUser;
|
||||
@ -208,7 +209,8 @@ export async function updatePerson(value: string | IObject, resolver?: Resolver)
|
||||
followingCount,
|
||||
notesCount,
|
||||
name: person.name,
|
||||
url: person.url
|
||||
url: person.url,
|
||||
endpoints: person.endpoints
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -50,6 +50,7 @@ export interface IPerson extends IObject {
|
||||
followers: any;
|
||||
following: any;
|
||||
outbox: any;
|
||||
endpoints: string[];
|
||||
}
|
||||
|
||||
export const isCollection = (object: IObject): object is ICollection =>
|
||||
|
Loading…
Reference in New Issue
Block a user