Fixed Exception when viewing reactions on conversation message by deleted user

Kirby

Well-known member
Affected version
2.1.8
Code:
ErrorException: [E_NOTICE] Trying to get property 'username' of non-object src/XF/Pub/Controller/Conversation.php:909

This does happen because of
PHP:
$title = \XF::phrase('members_who_reacted_to_message_by_x', ['user' => $message->User->username]);

In case of a deleted user $message->User is null.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.1.9).

Change log:
Don't throw an error when trying to view reactions on a conversation message by a deleted user.
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom