private function _fromAtomEntry($element)
 {
     $this->type = $this->_childContent($element, Activity::OBJECTTYPE, Activity::SPEC);
     if (empty($this->type)) {
         $this->type = ActivityObject::NOTE;
     }
     $this->summary = ActivityUtils::childHtmlContent($element, self::SUMMARY);
     $this->content = ActivityUtils::getContent($element);
     // We don't like HTML in our titles, although it's technically allowed
     $this->title = common_strip_html(ActivityUtils::childHtmlContent($element, self::TITLE));
     $this->source = $this->_getSource($element);
     $this->link = ActivityUtils::getPermalink($element);
     $this->id = $this->_childContent($element, self::ID);
     if (empty($this->id) && !empty($this->link)) {
         // fallback if there's no ID
         $this->id = $this->link;
     }
 }