lib/PublicInbox/View.pm | 2 +- lib/PublicInbox/ViewDiff.pm | 4 ++-- lib/PublicInbox/WwwAtomStream.pm | 1 + diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 354cdd93ef14939b567eef1538a54a76996af8e2..86f4a4672590364ecafa85f92176980f242fff93 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -248,7 +248,7 @@ $rv .= "\n"; # scan through all parts, looking for displayable text $ctx->{mhref} = $mhref; - $ctx->{end_id} = "e$id"; + $ctx->{changed_href} = "#e$id"; # for diffstat "files? changed," $ctx->{obuf} = \$rv; $eml->each_part(\&add_text_body, $ctx, 1); delete $ctx->{obuf}; diff --git a/lib/PublicInbox/ViewDiff.pm b/lib/PublicInbox/ViewDiff.pm index ee2d688c4584f0515f7b25c0547bc4ded9b86c17..8c1853e625557872003af9d74cad0fc13cc3875a 100644 --- a/lib/PublicInbox/ViewDiff.pm +++ b/lib/PublicInbox/ViewDiff.pm @@ -180,8 +180,8 @@ anchor0($dst, $ctx, $1, $2) and next; $$dst .= $linkify->to_html($l); } $$dst .= $x[2]; # $3 /^ \d+ files? / - my $end = $ctx->{end_id} // 'related'; - $$dst .= "changed,"; + my $ch = $ctx->{changed_href} // '#related'; + $$dst .= qq(changed,); $$dst .= ascii_html($x[1]); # $4: insertions/deletions $$dst .= $linkify->to_html($x[0]); # notes, commit message, etc } else { diff --git a/lib/PublicInbox/WwwAtomStream.pm b/lib/PublicInbox/WwwAtomStream.pm index 7b7047ac26d39e9647d3866d3a65801ca2dbaf54..09b6facbb337da0119ec063524a5dbd06373a323 100644 --- a/lib/PublicInbox/WwwAtomStream.pm +++ b/lib/PublicInbox/WwwAtomStream.pm @@ -156,6 +156,7 @@ qq{
);
$ctx->{obuf} = \$s;
$ctx->{mhref} = $href;
+ $ctx->{changed_href} = "${href}#related";
PublicInbox::View::multipart_text_as_html($eml, $ctx);
delete $ctx->{obuf};
$s .= '