Skip to content

Commit

Permalink
link twitter names to twitter, not nitter misskey-dev#382
Browse files Browse the repository at this point in the history
nitter seems very dead
  • Loading branch information
dakkar authored and nakkaa committed Sep 4, 2024
1 parent ada52e3 commit cf0b954
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cf0b954

Please sign in to comment.