Line: 91
Original code.
$sql = 'SELECT user_id
FROM ' . USERS_TABLE . '
WHERE ' . $this->db->sql_in_set('username_clean', $usernames) . '
AND user_id <> ' . (int) $post['poster_id'];
Modified code to remove foe notifications for quoted posts.
$sql = 'SELECT user_id
FROM ' . USERS_TABLE . ' AS usr
WHERE ' . $this->db->sql_in_set('username_clean', $usernames) . '
AND user_id <> ' . (int) $post['poster_id'] . '
AND NOT EXISTS(SELECT * FROM ' . ZEBRA_TABLE . ' AS zbr WHERE zbr.user_id = usr.user_id AND zbr.zebra_id = ' . (int) $post['poster_id'] . ' AND zbr.foe <> 0)';