summaryrefslogtreecommitdiff
path: root/packages/backend/src/queue/processors
diff options
context:
space:
mode:
authorMar0xy <marie@kaifa.ch>2023-11-13 10:25:39 +0100
committerMar0xy <marie@kaifa.ch>2023-11-13 10:25:39 +0100
commit9b3993a652c613c39d33e1fd8f6fac11164fab6f (patch)
treed61d5367e4b853c3de8ec4c599c61734c2cf1e84 /packages/backend/src/queue/processors
parentfix: NoteDetailed using wrong value (diff)
downloadsharkey-9b3993a652c613c39d33e1fd8f6fac11164fab6f.tar.gz
sharkey-9b3993a652c613c39d33e1fd8f6fac11164fab6f.tar.bz2
sharkey-9b3993a652c613c39d33e1fd8f6fac11164fab6f.zip
fix: prevent *key renotes/boosts from being imported
Stop renotes/boosts from *key from being imported due to missing functionality of getting the related posts
Diffstat (limited to 'packages/backend/src/queue/processors')
-rw-r--r--packages/backend/src/queue/processors/ImportNotesProcessorService.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
index a9159a3980..3f9d472716 100644
--- a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
+++ b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
@@ -210,6 +210,8 @@ export class ImportNotesProcessorService {
return;
}
+ if (note.renoteId) return;
+
const files: MiDriveFile[] = [];
const date = new Date(note.createdAt);