Stop alerts from ignored members

TeflonDon

Well-known member
Here's the current code, alerts from ignored members still come through. What should I add to stop that?

Code:
if (XenForo_Model_Alert::userReceivesAlert(array('user_id' => $this->get('receiver_user_id')), 'reputation', 'post'))
        {
            XenForo_Model_Alert::alert($this->get('receiver_user_id'),
                $this->get('giver_user_id'),
                $this->get('giver_username'),
                'reputation',
                $this->get('post_id'),
                'post', array('points' => $this->get('points'),
                'comment' => $this->get('comment'))
            );
        }

Thanks
 
I presume that's from an add-on?

In which case, the add-on author is the best person to help with that.
 
I presume that's from an add-on?

In which case, the add-on author is the best person to help with that.

I've had terrible experiences with this particular author so I was hoping to learn how to do this myself. Perhaps someone could just point me to an example of the core code achieving this request or is this thread in the wrong forum?
 
Back
Top Bottom