forked from mirror/misskey
Resolve #2101
This commit is contained in:
parent
6ac92ac4b8
commit
ba05f236bd
@ -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) {
|
||||
|
@ -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,
|
||||
|
@ -40,6 +40,7 @@ export interface IOrderedCollection extends IObject {
|
||||
|
||||
export interface INote extends IObject {
|
||||
type: 'Note';
|
||||
_misskey_content: string;
|
||||
}
|
||||
|
||||
export interface IPerson extends IObject {
|
||||
|
Loading…
Reference in New Issue
Block a user