Skip to content
Snippets Groups Projects
Commit fb2a961c authored by Mark Harding's avatar Mark Harding
Browse files

(fix): if deleted then do not show

parent 3927173f
No related branches found
No related tags found
Loading
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment