Prechádzať zdrojové kódy

Revert /c/ removal from YouTube replacer

Fixes #724
Zed 3 rokov pred
rodič
commit
8ad8cef875
1 zmenil súbory, kde vykonal 0 pridanie a 2 odobranie
  1. 0 2
      src/formatters.nim

+ 0 - 2
src/formatters.nim

@@ -56,8 +56,6 @@ proc replaceUrls*(body: string; prefs: Prefs; absolute=""): string =
 
   if prefs.replaceYouTube.len > 0 and "youtu" in result:
     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):
     result = result.replace(tco, &"{https}{prefs.replaceTwitter}/t.co")