From b77c025245a2ba4c425f88a0a2f7c1e84cf21964 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 28 Jan 2024 16:06:16 +0000 Subject: [PATCH] link twitter names to twitter, not nitter #382 nitter seems very dead --- .../backend/src/queue/processors/ImportNotesProcessorService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts index 03a0e951b..817befdf0 100644 --- a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts +++ b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts @@ -575,7 +575,7 @@ export class ImportNotesProcessorService { async function replaceTwitterMentions(full_text: string, mentions: any) { let full_textedit = full_text; mentions.forEach((mention: any) => { - full_textedit = full_textedit.replaceAll(`@${mention.screen_name}`, `[@${mention.screen_name}](https://nitter.net/${mention.screen_name})`); + full_textedit = full_textedit.replaceAll(`@${mention.screen_name}`, `[@${mention.screen_name}](https://twitter.com/${mention.screen_name})`); }); return full_textedit; }