mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 06:53:09 +02:00
parent
e5c060eecf
commit
b77c025245
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ export class ImportNotesProcessorService {
|
||||||
async function replaceTwitterMentions(full_text: string, mentions: any) {
|
async function replaceTwitterMentions(full_text: string, mentions: any) {
|
||||||
let full_textedit = full_text;
|
let full_textedit = full_text;
|
||||||
mentions.forEach((mention: any) => {
|
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;
|
return full_textedit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue