XF\Repository\TrendingContentRepository::getResultContent
always calls $handler->addAttachmentsToContent($content)
XF\TrendingContent\ThreadHandler
PHP:
Код:
public function getEntityWith(string $style): array
{
$visitor = \XF::visitor();
$with = [
'Forum',
'Forum.Node.Permissions|' . $visitor->permission_combination_id,
'User',
];
if (in_array($style, ['article', 'carousel'], true))
{
$with[] = 'FirstPost';
}...
Read more
Читать далее...