From 8ad8cef8756dcca42f66690fba2d5b2075f916f1 Mon Sep 17 00:00:00 2001 From: Zed Date: Sun, 27 Nov 2022 00:40:33 +0100 Subject: [PATCH] Revert /c/ removal from YouTube replacer Fixes #724 --- src/formatters.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/formatters.nim b/src/formatters.nim index 96b3612..7b939ca 100644 --- a/src/formatters.nim +++ b/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")