link twitter names to twitter, not nitter #382

nitter seems very dead
This commit is contained in:
dakkar 2024-01-28 16:06:16 +00:00
parent e5c060eecf
commit b77c025245
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}