style(tazjin/tgsa): Move attribution outside of quote body
When quoting a post containing a tgsa quote, the entire quote was previously erased. Doing it this way will leave the Telegram link in it. Change-Id: I53bfadd0615734f7e219b20509858d9b73c908a4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5482 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
eca7954758
commit
094b8cc7af
1 changed files with 3 additions and 3 deletions
|
@ -153,14 +153,14 @@ fn to_bbcode(link: &TgLink, msg: &TgMessage) -> String {
|
|||
out.push_str(message);
|
||||
}
|
||||
|
||||
out.push_str("\n[/quote]\n");
|
||||
|
||||
out.push_str(&format!(
|
||||
"\n\n[sub](from [url=\"{}\"]{}[/url], via [url=\"https://tgsa.tazj.in\"]tgsa[/url])[/sub]",
|
||||
"[sub](from [url=\"{}\"]{}[/url], via [url=\"https://tgsa.tazj.in\"]tgsa[/url])[/sub]\n",
|
||||
link.to_url(),
|
||||
link.human_friendly_url(),
|
||||
));
|
||||
|
||||
out.push_str("\n[/quote]\n");
|
||||
|
||||
out
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue