mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
Revert "fix: run post import async"
This reverts commit 3bedd1b34799d969cd218b4a1a67651532a204e6.
This commit is contained in:
parent
1400a01958
commit
3fda23c7dd
1 changed files with 40 additions and 42 deletions
|
@ -81,7 +81,6 @@ export async function importPosts(
|
|||
} else if (parsed instanceof Object) {
|
||||
logger.info("Parsing animal style posts");
|
||||
for (const post of parsed.orderedItems) {
|
||||
async () => {
|
||||
try {
|
||||
linenum++;
|
||||
let reply: Note | null = null;
|
||||
|
@ -89,18 +88,18 @@ export async function importPosts(
|
|||
reply = await resolveNote(post.object.inReplyTo);
|
||||
}
|
||||
if (post.directMessage) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
if (job.data.signatureCheck) {
|
||||
if (!post.signature) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
let text;
|
||||
try {
|
||||
text = htmlToMfm(post.object.content, post.object.tag);
|
||||
} catch (e) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
logger.info(`Posting[${linenum}] ...`);
|
||||
|
||||
|
@ -123,7 +122,6 @@ export async function importPosts(
|
|||
} catch (e) {
|
||||
logger.warn(`Error in line:${linenum} ${e}`);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue