/**
  * Reply to the release topic
  *
  * @param int $branch	Specific branch release topic to reply to
  * @param string $reply Message to reply to the topic with
  * @param array $options Any additional options for the reply
  */
 public function reply_release_topic($branch, $reply, $options = array())
 {
     $release_topic_id = $this->get_release_topic_id($branch);
     if (!$release_topic_id) {
         return;
     }
     titania::_include('functions_posting', 'phpbb_posting');
     $options_reply = array_merge($options, array('topic_id' => $release_topic_id, 'topic_title' => 'Re: ' . $this->contrib_name, 'post_text' => $reply));
     phpbb_posting('reply', $options_reply);
 }
function phpbb_com_titania_post_edit($hook, &$post_object)
{
    if (defined('IN_TITANIA_CONVERT') || !$post_object->phpbb_post_id) {
        return;
    }
    $forum_id = phpbb_com_forum_id($post_object->topic->topic_category, $post_object->post_type);
    if (!$forum_id) {
        return;
    }
    titania::_include('functions_posting', 'phpbb_posting');
    $post_text = $post_object->post_text;
    titania_decode_message($post_text, $post_object->post_text_uid);
    $post_text .= "\n\n" . titania_url::remove_sid($post_object->get_url());
    $options = array('post_id' => $post_object->phpbb_post_id, 'topic_title' => $post_object->post_subject, 'post_text' => $post_text);
    phpbb_posting('edit', $options);
}
function phpbb_com_titania_post_edit($hook, &$post_object)
{
    if (defined('IN_TITANIA_CONVERT') || !$post_object->phpbb_post_id) {
        return;
    }
    $forum_id = phpbb_com_forum_id($post_object->topic->topic_category, $post_object->post_type);
    if (!$forum_id) {
        return;
    }
    titania::_include('functions_posting', 'phpbb_posting');
    $path_helper = phpbb::$container->get('path_helper');
    $post_text = $post_object->post_text;
    phpbb_com_handle_attachments($post_object, $post_text);
    message::decode($post_text, $post_object->post_text_uid);
    $post_text .= "\n\n" . $path_helper->strip_url_params($post_object->get_url(), 'sid');
    $options = array('post_id' => $post_object->phpbb_post_id, 'topic_title' => $post_object->post_subject, 'post_text' => $post_text);
    phpbb_posting('edit', $options);
}