Make sure that the URLs are set before comitting posts made from CS emails.

This commit is contained in:
Colin Kuskie 2009-02-15 01:25:48 +00:00
parent 1bf24f2682
commit c1155d9ab9
2 changed files with 3 additions and 1 deletions

View file

@ -119,8 +119,9 @@ sub addPost {
$storage->addFileFromScalar($filename, $file->{content});
}
}
$post->requestAutoCommit;
##Modify, then save
$post->postProcess;
$post->requestAutoCommit;
$post->getThread->unarchive if ($post->getThread->get("status") eq "archived");
return $post;
}