public function dashboard_addNews($uid, $news, $image = null, $st1 = null, $st2 = null, $st3 = null, $type = 'user_to_user') { // append kt related parameters to action links $uuid_array = $this->m_an->gen_kt_dashboard_addNews_link($news, $st1, $st2, $st3); // facebook.dashboard.addNews $r = parent::dashboard_addNews($uid, $news, $image); // Send kontagent message if (!empty($r)) { if ($type == 'app_to_user') { $this->m_an->kt_dashboard_addAppToUserNews($uid, $uuid_array, $st1, $st2, $st3); } else { if ($type == 'user_to_user') { $this->m_an->kt_dashboard_addNews($uid, $uuid_array, $st1, $st2, $st3); } } } return $r; }