hello ,i think you need to rewrite code about class extensions
XFA\RMMarketplace\XF\Entity\Thread
i think it have issue about search more query in all website all page include homepage .thread etc.
maybe only resource page or resource related thread
XFA\RMMarketplace\XF\Entity\Thread
i think it have issue about search more query in all website all page include homepage .thread etc.
maybe only resource page or resource related thread
Code:
// Get resource
$resource = \XF::repository('XFRM:ResourceItem')->findResourceForThread($this)->with(['Category','ValidPurchase'])->fetchOne();
// Not linked to a resource anymore
if (!$resource)
{
return true;
}
// Resource owner or free resource or support thread not restricted
if ($resource->user_id == \XF::visitor()->user_id
|| $resource->xfa_rmmp_type == 'none'
|| !$resource->Category->xfa_rmmp_restrict_support)
{
return true;
}
// Has purchased product or own license
if ($resource->xfa_rmmp_type == 'digital')
{
if ($resource->DigitalProduct
&& $resource->DigitalProduct->hasValidLicense())
{
return true;
}
}
else
{
if ($resource->ValidPurchase)
{
return true;
}
}
Last edited: