Fixed XF\Finder\ConversationMessage->forFullView() missing User.Profile

digitalpoint

Well-known member
Affected version
2.x
Shouldn't the "with" statement here contain User.Profile also?

Not having it (like it is now) adds a query per user that is part of the conversation when viewing the conversation.

PHP:
$this->with('User');

vs

PHP:
$this->with(['User', 'User.Profile']);

On a side note, it is pretty slick how XF2 will go and query what's needed when it was missing in the original join. ;)
 
Top Bottom