summaryrefslogtreecommitdiff
path: root/packages/backend/src/queue
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-03-02 17:34:31 +0000
committerdakkar <dakkar@thenautilus.net>2024-03-02 17:34:31 +0000
commit6ecfe7c7c3c8d11b486c2a78d93f307ba266b5ec (patch)
tree4a7407d9502aba227e9da65c15f76306c6b43480 /packages/backend/src/queue
parentMerge branch 'develop' into release/2024.3.1 (diff)
downloadsharkey-6ecfe7c7c3c8d11b486c2a78d93f307ba266b5ec.tar.gz
sharkey-6ecfe7c7c3c8d11b486c2a78d93f307ba266b5ec.tar.bz2
sharkey-6ecfe7c7c3c8d11b486c2a78d93f307ba266b5ec.zip
remove duplicate method
Diffstat (limited to 'packages/backend/src/queue')
-rw-r--r--packages/backend/src/queue/processors/ImportNotesProcessorService.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
index 10cd90c4ad..7cef858c51 100644
--- a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
+++ b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
@@ -130,17 +130,6 @@ export class ImportNotesProcessorService {
return typeof obj[Symbol.iterator] === 'function';
}
- private parseTwitterFile(str : string) : null | [{ tweet: any }] {
- const removed = str.replace(new RegExp('window\\.YTD\\.tweets\\.part0 = ', 'g'), '');
-
- try {
- return JSON.parse(removed);
- } catch (error) {
- //The format is not what we expected. Either this file was tampered with or twitters exports changed
- return null;
- }
- }
-
@bindThis
private parseTwitterFile(str : string) : { tweet: object }[] {
const jsonStr = str.replace(/^\s*window\.YTD\.tweets\.part0\s*=\s*/, '');