import replies too
This commit is contained in:
parent
ede47e45c8
commit
ecf263bd91
|
@ -10,6 +10,7 @@ import { queueLogger } from "../../logger.js";
|
||||||
import type Bull from "bull";
|
import type Bull from "bull";
|
||||||
import { htmlToMfm } from "@/remote/activitypub/misc/html-to-mfm.js";
|
import { htmlToMfm } from "@/remote/activitypub/misc/html-to-mfm.js";
|
||||||
import { resolveNote } from "@/remote/activitypub/models/note.js";
|
import { resolveNote } from "@/remote/activitypub/models/note.js";
|
||||||
|
import { Note } from "@/models/entities/note.js";
|
||||||
|
|
||||||
const logger = queueLogger.createSubLogger("import-posts");
|
const logger = queueLogger.createSubLogger("import-posts");
|
||||||
|
|
||||||
|
@ -82,7 +83,7 @@ export async function importPosts(
|
||||||
for (const post of parsed.orderedItems) {
|
for (const post of parsed.orderedItems) {
|
||||||
try {
|
try {
|
||||||
linenum++;
|
linenum++;
|
||||||
let reply = null;
|
let reply: Note | null = null;
|
||||||
if (post.object.inReplyTo != null) {
|
if (post.object.inReplyTo != null) {
|
||||||
reply = await resolveNote(post.object.inReplyTo);
|
reply = await resolveNote(post.object.inReplyTo);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue