Commit fb2a961c authored by Mark Harding's avatar Mark Harding

(fix): if deleted then do not show

1 merge request!100Epic/reporting and moderation
Pipeline #61523009 passed with stages
in 4 minutes and 21 seconds
......@@ -14,6 +14,7 @@ use Minds\Core\Entities\Delegates\ResolverDelegate;
use Minds\Core\Security\ACL;
use Minds\Entities\Activity;
use Minds\Entities\User;
use Minds\Helpers\Flags;
class Resolver
{
......@@ -126,7 +127,10 @@ class Resolver
// Filter out forbidden entities
$sorted = array_filter($sorted, function($entity) { return $this->acl->read($entity, $this->user); });
$sorted = array_filter($sorted, function($entity) {
return $this->acl->read($entity, $this->user)
&& !Flags::shouldFail($entity);
});
// Filter out pending activities
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment