From 31bd23c5c7264578a9130cccebc2a3384a1b4eca Mon Sep 17 00:00:00 2001 From: Gregory Bartholomew Date: Dec 24 2021 05:28:52 +0000 Subject: Fix preview link --- diff --git a/bot/commands/pagure.pm b/bot/commands/pagure.pm index af15007..12ac831 100644 --- a/bot/commands/pagure.pm +++ b/bot/commands/pagure.pm @@ -100,6 +100,7 @@ my sub _fmt { } @{ $crd->{'custom_fields'} }; if ($preview) { + $preview =~ s{^.*?(\d+).*$}{https://fedoramagazine.org/?p=$1\&preview=true}; $ret .= "#link preview: $preview\n"; }