Revert /c/ removal from YouTube replacer

Fixes #724
This commit is contained in:
Zed 2022-11-27 00:40:33 +01:00
parent dd18471568
commit 8ad8cef875
1 changed files with 0 additions and 2 deletions

View File

@ -56,8 +56,6 @@ proc replaceUrls*(body: string; prefs: Prefs; absolute=""): string =
if prefs.replaceYouTube.len > 0 and "youtu" in result: if prefs.replaceYouTube.len > 0 and "youtu" in result:
result = result.replace(ytRegex, prefs.replaceYouTube) result = result.replace(ytRegex, prefs.replaceYouTube)
if prefs.replaceYouTube in result:
result = result.replace("/c/", "/")
if prefs.replaceTwitter.len > 0 and ("twitter.com" in body or tco in body): if prefs.replaceTwitter.len > 0 and ("twitter.com" in body or tco in body):
result = result.replace(tco, &"{https}{prefs.replaceTwitter}/t.co") result = result.replace(tco, &"{https}{prefs.replaceTwitter}/t.co")