From 6320f9f813443cdd14476f723deb022e2dfff9c4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 29 Aug 2022 09:26:41 +0000 Subject: www: atom: fix "changed" href to nowhere The HTML generated for the Atom feed doesn't have the footer of /T/ and /t/ HTML-only views, so just make "changed" in the diffstat go directly to the permalink #related anchor. Fixes: 66512e177390 ("view: generate query in single-message and commit views") --- lib/PublicInbox/ViewDiff.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/ViewDiff.pm') diff --git a/lib/PublicInbox/ViewDiff.pm b/lib/PublicInbox/ViewDiff.pm index ee2d688c..8c1853e6 100644 --- a/lib/PublicInbox/ViewDiff.pm +++ b/lib/PublicInbox/ViewDiff.pm @@ -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 .= "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 { -- cgit v1.2.3-24-ge0c7