diff options
author | Vincent Ambo <mail@tazj.in> | 2022-04-20T09·35+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-04-20T09·37+0000 |
commit | 094b8cc7afe2f854d7bdde5ad239867c8e54e1f3 (patch) | |
tree | db34444ef78014386cd0bc95ae5c7be5c1123582 /users/tazjin | |
parent | eca795475831da0d8a704c37bb591b2670407c27 (diff) |
style(tazjin/tgsa): Move attribution outside of quote body r/3976
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
Diffstat (limited to 'users/tazjin')
-rw-r--r-- | users/tazjin/tgsa/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/users/tazjin/tgsa/src/main.rs b/users/tazjin/tgsa/src/main.rs index 14e2162f4df1..d4bce1e0bcd2 100644 --- a/users/tazjin/tgsa/src/main.rs +++ b/users/tazjin/tgsa/src/main.rs @@ -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 } |