]> Sergey Matveev's repositories - public-inbox.git/commit
lei q: fix JSON overview with remote externals
authorEric Wong <e@80x24.org>
Sun, 24 Jan 2021 11:46:53 +0000 (04:46 -0700)
committerEric Wong <e@80x24.org>
Sun, 24 Jan 2021 19:46:03 +0000 (15:46 -0400)
commitac35655d75706ce297a71b6537334a2f690b6247
treefa08bd2bb073832097bdf6b5d709ec24d6b41b7e
parent533e1234bc03a1ca8754d249aa8c2ce157e26780
lei q: fix JSON overview with remote externals

We can't (and don't need to) repeatedly get the $each_smsg
callback for each URI since that clobbers {ovv_buf} before
it can be output.

I initially thought this was a dedupe-related bug and
moved the dedupe code into the $each_smsg callback to
minimize differences.  Nevertheless it's a nice code
reduction.

I also thought it was related to incomplete smsg info,
so {references} is now filled in correctly for dedupe.
lib/PublicInbox/LeiOverview.pm
lib/PublicInbox/LeiXSearch.pm