Fixed Approval queue spam clean support is broken

Affected version
2.1.6

Xon

Well-known member
XFRM 2.1.6 adds spam-cleaner support for various XFRM content types.

However in XF\Entity\ApprovalQueue::getDefaultActions, it assumes each content has a User relationship for ownership but ResourceVersion, and ResourceUpdate do not.

PHP:
...
   if ($content->User)
   {
      $user = $content->User;
   }
This really should be an isset($content->User) and for ResourceVersion, and ResourceUpdate to have a User relationship
 

XF Bug Bot

XenForo bug fixer bot
Staff member
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:
Avoid throwing a template error for approval queue items with no user relationship.
There may be a delay before changes are rolled out to the XenForo Community.
 
Top