Commit fafe30f
Fix RedHerbSidebarHook calling removed ViewHtmlBuilder method
`ViewHtmlBuilder::pageHasMainSubject()` was removed in #795 and the
predicate moved to `PageSubjectsLookup`. The internal call site in
`NeoWikiHooks` was updated, but `RedHerbSidebarHook` still referenced
the removed method via the default closure in its constructor, which
fired on every `SidebarBeforeOutput` invocation against an existing
page, producing an HTTP 500.
Switch the default closure to `PageSubjectsLookup::pageHasMainSubject()`,
matching the call shape now used in `NeoWikiHooks::getNeoWikiAppHtml()`.
The closure signature stays `Title -> bool`; the conversion to `PageId`
is internal so existing test stubs need no changes.
Follows-up to #795
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 850963e commit fafe30f
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
0 commit comments