Merge branch 'develop' of codeberg.org:calckey/calckey into develop

This commit is contained in:
ThatOneCalculator 2023-05-10 14:06:55 -07:00
commit 21ab26a7b3
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 41 additions and 39 deletions

View File

@ -81,6 +81,7 @@ 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;
@ -88,18 +89,18 @@ export async function importPosts(
reply = await resolveNote(post.object.inReplyTo);
}
if (post.directMessage) {
continue;
return;
}
if (job.data.signatureCheck) {
if (!post.signature) {
continue;
return;
}
}
let text;
try {
text = htmlToMfm(post.object.content, post.object.tag);
} catch (e) {
continue;
return;
}
logger.info(`Posting[${linenum}] ...`);
@ -122,6 +123,7 @@ export async function importPosts(
} catch (e) {
logger.warn(`Error in line:${linenum} ${e}`);
}
};
}
}
} catch (e) {