mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Fix: add done statements
This commit is contained in:
parent
61295c8fbb
commit
a2a9415839
@ -24,10 +24,12 @@ export async function importMastoPost(
|
|||||||
reply = await resolveNote(post.object.inReplyTo);
|
reply = await resolveNote(post.object.inReplyTo);
|
||||||
}
|
}
|
||||||
if (post.directMessage) {
|
if (post.directMessage) {
|
||||||
|
done();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (job.data.signatureCheck) {
|
if (job.data.signatureCheck) {
|
||||||
if (!post.signature) {
|
if (!post.signature) {
|
||||||
|
done();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -35,6 +37,7 @@ export async function importMastoPost(
|
|||||||
try {
|
try {
|
||||||
text = htmlToMfm(post.object.content, post.object.tag);
|
text = htmlToMfm(post.object.content, post.object.tag);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
done();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user