fix(users/Profpatsch/whatcd-resolver): fix torrent link
The redacted URL needs the torrent group id to go to the album page, not the torrent id. Also open the external link in a separate tab. Change-Id: Ie6d73cb02137855bb388859d2800968cd56ece49 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11745 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI Autosubmit: Profpatsch <mail@profpatsch.de>
This commit is contained in:
parent
8bb27c98b0
commit
ea89572f98
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ redactedGetTorrentFile dat = inSpan' "Redacted Get Torrent File" $ \span -> do
|
|||
)
|
||||
httpTorrent span req
|
||||
|
||||
mkRedactedTorrentLink :: Arg "torrentId" Int -> Text
|
||||
mkRedactedTorrentLink :: Arg "torrentGroupId" Int -> Text
|
||||
mkRedactedTorrentLink torrentId = [fmt|https://redacted.ch/torrents.php?id={torrentId.unArg}|]
|
||||
|
||||
exampleSearch :: (MonadThrow m, MonadLogger m, MonadPostgres m, MonadOtel m) => m (Transaction m ())
|
||||
|
|
|
@ -541,7 +541,7 @@ getBestTorrentsTable artistFilter = do
|
|||
{artists}
|
||||
</td>
|
||||
<td>
|
||||
<a href={mkRedactedTorrentLink (Arg b.torrentId)}>
|
||||
<a href={mkRedactedTorrentLink (Arg b.groupId)} target="_blank">
|
||||
{Html.toHtml @Text b.torrentGroupJson.groupName}
|
||||
</a>
|
||||
</td>
|
||||
|
|
Loading…
Reference in a new issue