]> Sergey Matveev's repositories - public-inbox.git/commit - lib/PublicInbox/View.pm
view: fix solver links with multiple messages
authorEric Wong <e@80x24.org>
Sat, 10 Sep 2022 20:10:23 +0000 (20:10 +0000)
committerEric Wong <e@80x24.org>
Sun, 11 Sep 2022 19:25:46 +0000 (19:25 +0000)
commitf5e2daa70e0a1a75d1220d84193f3eeebb799c38
treef5a5a8bcf8982ab5b025f8070011e099eeb55cab
parent12900fecdc4c7f577eb8266a2334d74f72fd2518
view: fix solver links with multiple messages

For redundant messages sharing Message-IDs, the link to solver
(/$INBOX/$OID/s/) was going up too many levels for /$INBOX/$MSGID/
when there were multiple messages sharing the same $MSGID.

Unfortunately, redundant messages are common with /all/
due to signature trailers.  So dynamically assigning {-spfx}
is tricky and error prone from counting `/'.

So simplify the code a bit by setting {-spfx} once per HTTP
request, instead of every single message.
lib/PublicInbox/Feed.pm
lib/PublicInbox/View.pm
lib/PublicInbox/WwwAtomStream.pm