- Affected version
- 2.2.4
Each new update on resource updates pages generates additional queries to fetch both reaction content and bookmark items, which are implemented through the ResourceUpdate entity via
For my own purposes, this behaviour also occurs when implementing reactions on resource reviews which is overcome by fetching with Reactions on the ResourceRating entity.
addReactableStructureElements($structure)
and addBookmarkableStructureElements($structure)
.For my own purposes, this behaviour also occurs when implementing reactions on resource reviews which is overcome by fetching with Reactions on the ResourceRating entity.
PHP:
if (isset($structure->withAliases['full']))
{
$structure->withAliases['full'][] = function()
{
$visitorId = \XF::visitor()->user_id;
if ($visitorId)
{
return 'Reactions|' . $visitorId;
}
};
}