mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Save remote user's endpoints
This commit is contained in:
parent
cb532a508b
commit
0ef593999f
3 changed files with 5 additions and 1 deletions
|
@ -87,6 +87,7 @@ export interface ILocalUser extends IUserBase {
|
||||||
|
|
||||||
export interface IRemoteUser extends IUserBase {
|
export interface IRemoteUser extends IUserBase {
|
||||||
inbox: string;
|
inbox: string;
|
||||||
|
endpoints: string[];
|
||||||
uri: string;
|
uri: string;
|
||||||
url?: string;
|
url?: string;
|
||||||
publicKey: {
|
publicKey: {
|
||||||
|
|
|
@ -101,6 +101,7 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
|
||||||
publicKeyPem: person.publicKey.publicKeyPem
|
publicKeyPem: person.publicKey.publicKeyPem
|
||||||
},
|
},
|
||||||
inbox: person.inbox,
|
inbox: person.inbox,
|
||||||
|
endpoints: person.endpoints,
|
||||||
uri: person.id,
|
uri: person.id,
|
||||||
url: person.url
|
url: person.url
|
||||||
}) as IRemoteUser;
|
}) as IRemoteUser;
|
||||||
|
@ -208,7 +209,8 @@ export async function updatePerson(value: string | IObject, resolver?: Resolver)
|
||||||
followingCount,
|
followingCount,
|
||||||
notesCount,
|
notesCount,
|
||||||
name: person.name,
|
name: person.name,
|
||||||
url: person.url
|
url: person.url,
|
||||||
|
endpoints: person.endpoints
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,7 @@ export interface IPerson extends IObject {
|
||||||
followers: any;
|
followers: any;
|
||||||
following: any;
|
following: any;
|
||||||
outbox: any;
|
outbox: any;
|
||||||
|
endpoints: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isCollection = (object: IObject): object is ICollection =>
|
export const isCollection = (object: IObject): object is ICollection =>
|
||||||
|
|
Loading…
Reference in a new issue