View file upload/src/addons/Siropu/Shoutbox/Finder/Shout.php

File size: 351B
<?php

namespace Siropu\Shoutbox\Finder;

use XF\Mvc\Entity\Finder;

class Shout extends Finder
{
     public function notIgnored()
     {
          $ignored = \XF::visitor()->Profile->ignored;

          if ($ignored)
          {
               $this->where('shout_user_id', '<>', array_keys($ignored));
          }

          return $this;
     }
}