wip
This commit is contained in:
parent
51929fb607
commit
bd758a156e
|
@ -93,6 +93,7 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
|
||||||
notesCount,
|
notesCount,
|
||||||
name: person.name,
|
name: person.name,
|
||||||
driveCapacity: 1024 * 1024 * 8, // 8MiB
|
driveCapacity: 1024 * 1024 * 8, // 8MiB
|
||||||
|
isLocked: person.manuallyApprovesFollowers,
|
||||||
username: person.preferredUsername,
|
username: person.preferredUsername,
|
||||||
usernameLower: person.preferredUsername.toLowerCase(),
|
usernameLower: person.preferredUsername.toLowerCase(),
|
||||||
host,
|
host,
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
import renderImage from './image';
|
import renderImage from './image';
|
||||||
import renderKey from './key';
|
import renderKey from './key';
|
||||||
import config from '../../../config';
|
import config from '../../../config';
|
||||||
|
import { ILocalUser } from '../../../models/user';
|
||||||
|
|
||||||
export default user => {
|
export default (user: ILocalUser) => {
|
||||||
const id = `${config.url}/users/${user._id}`;
|
const id = `${config.url}/users/${user._id}`;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -17,6 +18,7 @@ export default user => {
|
||||||
summary: user.description,
|
summary: user.description,
|
||||||
icon: user.avatarId && renderImage({ _id: user.avatarId }),
|
icon: user.avatarId && renderImage({ _id: user.avatarId }),
|
||||||
image: user.bannerId && renderImage({ _id: user.bannerId }),
|
image: user.bannerId && renderImage({ _id: user.bannerId }),
|
||||||
|
manuallyApprovesFollowers: user.isLocked,
|
||||||
publicKey: renderKey(user)
|
publicKey: renderKey(user)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,6 +45,7 @@ export interface IPerson extends IObject {
|
||||||
type: 'Person';
|
type: 'Person';
|
||||||
name: string;
|
name: string;
|
||||||
preferredUsername: string;
|
preferredUsername: string;
|
||||||
|
manuallyApprovesFollowers: boolean;
|
||||||
inbox: string;
|
inbox: string;
|
||||||
publicKey: any;
|
publicKey: any;
|
||||||
followers: any;
|
followers: any;
|
||||||
|
|
Loading…
Reference in a new issue