mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 18:03:09 +02:00
Resolve #2101
This commit is contained in:
parent
6ac92ac4b8
commit
ba05f236bd
3 changed files with 3 additions and 1 deletions
|
@ -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 a new issue