From d63044a15eaa0d6abfe20a694371a26a31bc1b3a Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 26 Jun 2018 18:34:17 +0900 Subject: [PATCH] Fix #1781 --- src/remote/activitypub/renderer/person.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/remote/activitypub/renderer/person.ts b/src/remote/activitypub/renderer/person.ts index 6ee69cbae7..d4b3f40e41 100644 --- a/src/remote/activitypub/renderer/person.ts +++ b/src/remote/activitypub/renderer/person.ts @@ -2,6 +2,8 @@ import renderImage from './image'; import renderKey from './key'; import config from '../../../config'; import { ILocalUser } from '../../../models/user'; +import toHtml from '../../../mfm/html'; +import parse from '../../../mfm/parse'; export default (user: ILocalUser) => { const id = `${config.url}/users/${user._id}`; @@ -15,7 +17,7 @@ export default (user: ILocalUser) => { url: `${config.url}/@${user.username}`, preferredUsername: user.username, name: user.name, - summary: user.description, + summary: toHtml(parse(user.description)), icon: user.avatarId && renderImage(user.avatarId), image: user.bannerId && renderImage(user.bannerId), manuallyApprovesFollowers: user.isLocked,