diff options
author | Yorhel <git@yorhel.nl> | 2024-04-07 17:00:20 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2024-04-07 17:00:20 +0200 |
commit | 51f8af32911a2152006e98f2744f5fe91919be38 (patch) | |
tree | 54ca908ad1a84a57cc6bbdc094b1faa56301e554 /lib/VNWeb/Releases | |
parent | 91bdd03459cbc293b840da0012ef2a1dd1d3bf27 (diff) |
Diffstat (limited to 'lib/VNWeb/Releases')
-rw-r--r-- | lib/VNWeb/Releases/Lib.pm | 2 | ||||
-rw-r--r-- | lib/VNWeb/Releases/Page.pm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNWeb/Releases/Lib.pm b/lib/VNWeb/Releases/Lib.pm index 644239a0..6688dedb 100644 --- a/lib/VNWeb/Releases/Lib.pm +++ b/lib/VNWeb/Releases/Lib.pm @@ -179,7 +179,7 @@ sub release_row_ { elm_ 'UList.ReleaseEdit', $VNWeb::ULists::Elm::RLIST_STATUS, { rid => $r->{id}, uid => auth->uid, status => $r->{rlist_status}, empty => '--' } if auth; }; td_ class => 'tc6', sub { - release_extlinks_ $r, "$opt->{id}_$r->{id}" if $r->{official} || !grep $_->{mtl}, $r->{titles}->@*; + release_extlinks_ $r, "$opt->{id}_$r->{id}" if $r->{patch} || $r->{official} || !grep $_->{mtl}, $r->{titles}->@*; }; } } diff --git a/lib/VNWeb/Releases/Page.pm b/lib/VNWeb/Releases/Page.pm index 9a60008a..47bd6b63 100644 --- a/lib/VNWeb/Releases/Page.pm +++ b/lib/VNWeb/Releases/Page.pm @@ -268,10 +268,10 @@ sub _infotable_ { tr_ sub { td_ 'Links'; td_ sub { - if ($r->{official} || !grep $_->{mtl}, $r->{titles}->@*) { + if ($r->{patch} || $r->{official} || !grep $_->{mtl}, $r->{titles}->@*) { join_ ', ', sub { a_ href => $_->{url2}, $_->{label} }, $r->{extlinks}->@*; } else { - small_ 'hidden'; + small_ 'piracy link hidden'; } } } if $r->{extlinks}->@*; |