1
0
forked from mirror/misskey
This commit is contained in:
syuilo 2018-09-10 02:47:34 +09:00
parent 6ac92ac4b8
commit ba05f236bd
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
3 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,7 @@ export async function createNote(value: any, resolver?: Resolver, silent = false
const reply = note.inReplyTo ? await resolveNote(note.inReplyTo, resolver) : null;
// テキストのパース
const text = htmlToMFM(note.content);
const text = note._misskey_content ? note._misskey_content : htmlToMFM(note.content);
// ユーザーの情報が古かったらついでに更新しておく
if (actor.updatedAt == null || Date.now() - actor.updatedAt.getTime() > 1000 * 60 * 60 * 24) {

View File

@ -87,6 +87,7 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
attributedTo,
summary: note.cw,
content: toHtml(note),
_misskey_content_: note.text,
published: note.createdAt.toISOString(),
to,
cc,

View File

@ -40,6 +40,7 @@ export interface IOrderedCollection extends IObject {
export interface INote extends IObject {
type: 'Note';
_misskey_content: string;
}
export interface IPerson extends IObject {