summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/renderer
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-22 10:44:17 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-22 10:44:17 +0900
commit20e77196f28178c869402985761bd4c2fa74bf0a (patch)
treebeb333d0a01cf6752bdcc6028c82ce63f579f1f1 /src/remote/activitypub/renderer
parentFix #1531 (diff)
downloadmisskey-20e77196f28178c869402985761bd4c2fa74bf0a.tar.gz
misskey-20e77196f28178c869402985761bd4c2fa74bf0a.tar.bz2
misskey-20e77196f28178c869402985761bd4c2fa74bf0a.zip
AP: 投票をレンダリング
Diffstat (limited to 'src/remote/activitypub/renderer')
-rw-r--r--src/remote/activitypub/renderer/note.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/remote/activitypub/renderer/note.ts b/src/remote/activitypub/renderer/note.ts
index c364b13249..a05c12b388 100644
--- a/src/remote/activitypub/renderer/note.ts
+++ b/src/remote/activitypub/renderer/note.ts
@@ -4,6 +4,7 @@ import config from '../../../config';
import DriveFile from '../../../models/drive-file';
import Note, { INote } from '../../../models/note';
import User from '../../../models/user';
+import toHtml from '../misc/get-note-html';
export default async function renderNote(note: INote, dive = true) {
const promisedFiles = note.mediaIds
@@ -48,7 +49,7 @@ export default async function renderNote(note: INote, dive = true) {
id: `${config.url}/notes/${note._id}`,
type: 'Note',
attributedTo,
- content: note.textHtml,
+ content: toHtml(note),
published: note.createdAt.toISOString(),
to: 'https://www.w3.org/ns/activitystreams#Public',
cc: `${attributedTo}/followers`,