When params.q is set, Flarum core suppresses TerminalPost and only shows an excerpt from mostRelevantPost. This leaves the info section empty when the post is null (e.g. hidden/deleted first post in production) or when results are ordered by a field sort where an excerpt is meaningless. Extend DiscussionListItem.infoItems to: - Replace excerpt with TerminalPost when a field sort (latest, oldest, top) is active — relevance excerpts are not meaningful when sorted by date/count. - Fall back to TerminalPost when no excerpt was added (mostRelevantPost null). |
||
|---|---|---|
| .. | ||
| admin.js | ||
| admin.js.map | ||
| forum.js | ||
| forum.js.map | ||