about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-12-02T16·19+0100
committerProfpatsch <mail@profpatsch.de>2024-12-10T15·34+0000
commit22c46c80093948aa2490220608f188d1691c8ad0 (patch)
treeddd14891946557de71bda51980a5912a1c19d64f
parent84e9c7f10423ecff48bb490e8889426a27329caf (diff)
fix(users/Profpatsch/whacd-resolver): fix redacted TLD r/8995
they switched from .ch to .sh

Change-Id: I889634ec257b7956b9d2b22a9ad6fc0c889f43c2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12853
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
-rw-r--r--users/Profpatsch/whatcd-resolver/src/Redacted.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/Profpatsch/whatcd-resolver/src/Redacted.hs b/users/Profpatsch/whatcd-resolver/src/Redacted.hs
index 7bf9e8c2ce27..3cf5479996d7 100644
--- a/users/Profpatsch/whatcd-resolver/src/Redacted.hs
+++ b/users/Profpatsch/whatcd-resolver/src/Redacted.hs
@@ -73,7 +73,7 @@ redactedGetTorrentFile dat = inSpan' "Redacted Get Torrent File" $ \span -> do
   httpTorrent span req
 
 mkRedactedTorrentLink :: Arg "torrentGroupId" Int -> Text
-mkRedactedTorrentLink torrentId = [fmt|https://redacted.ch/torrents.php?id={torrentId.unArg}|]
+mkRedactedTorrentLink torrentId = [fmt|https://redacted.sh/torrents.php?id={torrentId.unArg}|]
 
 exampleSearch :: (MonadThrow m, MonadLogger m, MonadPostgres m, MonadOtel m, MonadRedacted m) => m (Transaction m ())
 exampleSearch = do
@@ -495,7 +495,7 @@ mkRedactedApiRequest ::
 mkRedactedApiRequest dat = do
   authKey <- getRedactedApiKey
   pure $
-    [fmt|https://redacted.ch/ajax.php|]
+    [fmt|https://redacted.sh/ajax.php|]
       & Http.setRequestMethod "GET"
       & Http.setQueryString (("action", Just dat.action) : dat.actionArgs)
       & Http.setRequestHeader "Authorization" [authKey]