change wording
This commit is contained in:
parent
0c9ab9fdfa
commit
35f09d0067
|
@ -33,16 +33,16 @@ export async function importPosts(
|
||||||
|
|
||||||
if (file.name.endsWith("tar.gz")) {
|
if (file.name.endsWith("tar.gz")) {
|
||||||
try {
|
try {
|
||||||
logger.info("Parsing animal style posts in package");
|
logger.info("Reading Mastodon archive");
|
||||||
const outbox = await processMastoNotes(file.url, job.data.user.id);
|
const outbox = await processMastoNotes(file.url, job.data.user.id);
|
||||||
for (const post of outbox.orderedItems) {
|
for (const post of outbox.orderedItems) {
|
||||||
createImportMastoPostJob(job.data.user, post, job.data.signatureCheck);
|
createImportMastoPostJob(job.data.user, post, job.data.signatureCheck);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// handle error
|
// handle error
|
||||||
logger.warn(`Error reading: ${e}`);
|
logger.warn(`Failed reading Mastodon archive: ${e}`);
|
||||||
}
|
}
|
||||||
logger.succ("Imported");
|
logger.succ("Mastodon archive imported");
|
||||||
done();
|
done();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue