mediawiki-extensions-Discus.../includes/Hooks
Arlo Breault 7e5f9b59a2 Invert logic on empty talk page
Record if a talk page is not empty, rather than empty.

This helps prevent Parsoid from mislabelling pages as empty when they
contain extension tags it needs to call out to the legacy parser to
process.  Metadata from the legacy parse is merged into the overall
metadata for the page.

For example, a templatestyles extension tag parsed in the context of a
talk page would set the empty state which would then fail to cleared if
the overall parse of the page wasn't empty.

Bartosz (@matmarex) proposed this idea in T371125#10053043

Setting and using these flags all appear to be post-retrieval from
cache.

Alternative to I1deb679ef0e19dc3a36e377c183dd1b4ab0003e9

Bug: T371125
Change-Id: I5c1877f7f9eb73f88a33e001ca3c2f3d06bb90e4
2024-08-14 18:26:25 -04:00
..
ApiHooks.php Comment thanking 2024-05-28 17:47:09 +02:00
BetaPreferenceHooks.php BetaPreferenceHooks: Reuse $this->config 2024-07-03 15:14:47 +00:00
DataUpdatesHooks.php Update TODO documentation around parsing 2024-01-10 18:29:40 +00:00
DiscussionToolsAddOverflowMenuItemsHook.php Use namespaced classes 2024-06-09 00:02:35 +02:00
DiscussionToolsHooks.php Inject services into DiscussionToolsHooks 2024-07-03 15:00:54 +00:00
DiscussionToolsTermsOfUseMessagesHook.php Use namespaced classes 2023-12-11 16:38:02 +01:00
EchoHooks.php Comment thanking 2024-05-28 17:47:09 +02:00
HookRunner.php Use namespaced classes 2024-06-09 00:02:35 +02:00
HookUtils.php Use service 'GadgetsRepo' instead of deprecated GadgetRepo::singleton() 2024-06-30 09:03:11 +00:00
InstallerHooks.php Use namespaced classes 2024-06-09 00:02:35 +02:00
PageHooks.php Restore "empty state" on existing but empty talk pages 2024-07-09 19:31:55 +00:00
ParserHooks.php Invert logic on empty talk page 2024-08-14 18:26:25 -04:00
PreferenceHooks.php Remove WMF-specific "discussiontools-autotopicsub" settings 2024-06-15 13:05:07 +00:00
RegistrationHooks.php Use namespaced classes 2023-12-11 16:38:02 +01:00
TagHooks.php Use namespaced classes 2024-06-09 00:02:35 +02:00