* @param Profile $actor local user profile whose keys to sign with
* @return boolean success
*/
- public function post($endpoint_uri, $xml, $actor)
+ public function post($endpoint_uri, $xml, Profile $actor)
{
if (empty($endpoint_uri)) {
return false;
common_log(LOG_ERR, "Salmon unable to sign: " . $e->getMessage());
return false;
}
-
+
$headers = array('Content-Type: application/magic-envelope+xml');
-
+
try {
$client = new HTTPClient();
$client->setBody($envelope);
{
$magic_env = new $class();
- $user = User::staticGet('id', $actor->id);
+ $user = User::getKV('id', $actor->id);
if ($user->id) {
// Use local key
- $magickey = Magicsig::staticGet('user_id', $user->id);
+ $magickey = Magicsig::getKV('user_id', $user->id);
if (!$magickey) {
// No keypair yet, let's generate one.
$magickey = new Magicsig();