/** * Save a remote notice source record; this helps indicate how trusted we are. * @param string $method */ public static function saveNew(Notice $notice, Ostatus_profile $oprofile, $method) { $osource = new Ostatus_source(); $osource->notice_id = $notice->id; $osource->profile_uri = $oprofile->uri; $osource->method = $method; $osource->created = common_sql_now(); if ($osource->insert()) { return true; } else { common_log_db_error($osource, 'INSERT', __FILE__); return false; } }