]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ViewDiff.pm
www: atom: fix "changed" href to nowhere
[public-inbox.git] / lib / PublicInbox / ViewDiff.pm
index ee2d688c4584f0515f7b25c0547bc4ded9b86c17..8c1853e625557872003af9d74cad0fc13cc3875a 100644 (file)
@@ -180,8 +180,8 @@ sub diff_before_or_after ($$) {
                        $$dst .= $linkify->to_html($l);
                }
                $$dst .= $x[2]; # $3 /^ \d+ files? /
-               my $end = $ctx->{end_id} // 'related';
-               $$dst .= "<a href=#$end>changed</a>,";
+               my $ch = $ctx->{changed_href} // '#related';
+               $$dst .= qq(<a href="$ch">changed</a>,);
                $$dst .= ascii_html($x[1]); # $4: insertions/deletions
                $$dst .= $linkify->to_html($x[0]); # notes, commit message, etc
        } else {