RSS Feed/News fetchExtraContentForThreadsFullView is not passed sticky threads

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,072
Points
823

Reputation:

In XF\Pub\Controller\Forum::actionForum:

PHP:

Code:
$allThreads = $threads;
if ($stickyThreads)
{
    $allThreads->merge($stickyThreads);
}
$forumTypeHandler->fetchExtraContentForThreadsFullView($forum, $allThreads);

The ArrayCollection::merge returns a new instance, and doesn't modify the existing copy, meaning sticky threads are not passed to `fetchExtraContentForThreadsFullView

Continue reading...
 
Status
Not open for further replies.
Top