mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 04:33:50 +01:00
Resolve #2101
This commit is contained in:
parent
1c6cc0f539
commit
4c1ceaaae1
@ -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