protected function _promote()
 {
     $threadId = $this->get('thread_id');
     if (XenForo_Application::isRegistered('extraportal.promoteThread')) {
         $input = XenForo_Application::get('extraportal.promoteThread');
     } else {
         // autopromotion
         $input = array();
     }
     $data = array();
     if (isset($input['category_id'])) {
         $data[SimplePortal_Helper_Content::CATEGORY_ID] = $input['category_id'];
     }
     if (isset($input['display_order'])) {
         $data[SimplePortal_Helper_Content::DISPLAY_ORDER] = $input['display_order'];
     }
     if ($this->getOption(self::OPTION_ATTACH_ATTACHMENT_TO_PORTAL)) {
         $attachment = SimplePortal_Helper_Content::findInlineAttachment($this->getFirstMessageDw()->get('message'));
         $attachmentId = $attachment['attachment_id'];
         $data[SimplePortal_Helper_Content::ATTACHMENT_ID] = $attachmentId;
     }
     SimplePortal_Helper_Content::promote('thread', $threadId, $data);
 }