mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-30 05:47:46 -07:00
Fix #1781
This commit is contained in:
parent
6fc45a1ba3
commit
87a3983c29
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@ 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';
|
import { ILocalUser } from '../../../models/user';
|
||||||
|
import toHtml from '../../../mfm/html';
|
||||||
|
import parse from '../../../mfm/parse';
|
||||||
|
|
||||||
export default (user: ILocalUser) => {
|
export default (user: ILocalUser) => {
|
||||||
const id = `${config.url}/users/${user._id}`;
|
const id = `${config.url}/users/${user._id}`;
|
||||||
|
@ -15,7 +17,7 @@ export default (user: ILocalUser) => {
|
||||||
url: `${config.url}/@${user.username}`,
|
url: `${config.url}/@${user.username}`,
|
||||||
preferredUsername: user.username,
|
preferredUsername: user.username,
|
||||||
name: user.name,
|
name: user.name,
|
||||||
summary: user.description,
|
summary: toHtml(parse(user.description)),
|
||||||
icon: user.avatarId && renderImage(user.avatarId),
|
icon: user.avatarId && renderImage(user.avatarId),
|
||||||
image: user.bannerId && renderImage(user.bannerId),
|
image: user.bannerId && renderImage(user.bannerId),
|
||||||
manuallyApprovesFollowers: user.isLocked,
|
manuallyApprovesFollowers: user.isLocked,
|
||||||
|
|
Loading…
Reference in a new issue