diff --git a/lib/api/opAPIDiary.class.php b/lib/api/opAPIDiary.class.php index a7b0090..a52309b 100644 --- a/lib/api/opAPIDiary.class.php +++ b/lib/api/opAPIDiary.class.php @@ -53,7 +53,7 @@ public function entry() public function insert(SimpleXMLElement $xml) { - $member = Doctrine::getTable('Member')->find($xml->author->id); + $member = Doctrine::getTable('Member')->find($this->getMemberIdByUrl((string)$xml->author->uri)); if (!$member) { return false;