WIP: Support sharedInbox
This commit is contained in:
parent
534c47935a
commit
bfa326af2c
|
@ -108,6 +108,7 @@ export interface ILocalUser extends IUserBase {
|
||||||
|
|
||||||
export interface IRemoteUser extends IUserBase {
|
export interface IRemoteUser extends IUserBase {
|
||||||
inbox: string;
|
inbox: string;
|
||||||
|
sharedInbox?: string;
|
||||||
endpoints: string[];
|
endpoints: string[];
|
||||||
uri: string;
|
uri: string;
|
||||||
url?: string;
|
url?: string;
|
||||||
|
|
|
@ -117,6 +117,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,
|
||||||
|
sharedInbox: person.sharedInbox,
|
||||||
endpoints: person.endpoints,
|
endpoints: person.endpoints,
|
||||||
uri: person.id,
|
uri: person.id,
|
||||||
url: person.url,
|
url: person.url,
|
||||||
|
@ -239,6 +240,8 @@ export async function updatePerson(value: string | IObject, resolver?: Resolver)
|
||||||
await User.update({ _id: exist._id }, {
|
await User.update({ _id: exist._id }, {
|
||||||
$set: {
|
$set: {
|
||||||
updatedAt: new Date(),
|
updatedAt: new Date(),
|
||||||
|
inbox: person.inbox,
|
||||||
|
sharedInbox: person.sharedInbox,
|
||||||
avatarId: avatar ? avatar._id : null,
|
avatarId: avatar ? avatar._id : null,
|
||||||
bannerId: banner ? banner._id : null,
|
bannerId: banner ? banner._id : null,
|
||||||
avatarUrl: avatar && avatar.metadata.isMetaOnly ? avatar.metadata.url : null,
|
avatarUrl: avatar && avatar.metadata.isMetaOnly ? avatar.metadata.url : null,
|
||||||
|
|
|
@ -47,6 +47,7 @@ export interface IPerson extends IObject {
|
||||||
preferredUsername: string;
|
preferredUsername: string;
|
||||||
manuallyApprovesFollowers: boolean;
|
manuallyApprovesFollowers: boolean;
|
||||||
inbox: string;
|
inbox: string;
|
||||||
|
sharedInbox?: string;
|
||||||
publicKey: any;
|
publicKey: any;
|
||||||
followers: any;
|
followers: any;
|
||||||
following: any;
|
following: any;
|
||||||
|
|
Loading…
Reference in New Issue