Changeset 2350
- Timestamp:
- 05/15/08 23:51:38 (6 months ago)
- Files:
-
- branches/release-38/lib/MT/App/Comments.pm (modified) (2 diffs)
- branches/release-38/lib/MT/WeblogPublisher.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-38/lib/MT/App/Comments.pm
r2263 r2350 970 970 971 971 if ( $comment->visible ) { 972 972 $app->publisher->start_time(time); 973 973 # Rebuild the entry synchronously so that if the user gets 974 974 # redirected to the indiv. page it will be up-to-date. 975 $app->rebuild_entry( Entry => $entry->id )975 $app->rebuild_entry( Entry => $entry->id, Force => 1, PreferredArchiveOnly => 1 ) 976 976 or return $app->handle_error( 977 977 $app->translate( "Publish failed: [_1]", $app->errstr ) ); … … 991 991 MT::Util::start_background_task( 992 992 sub { 993 $app->rebuild_indexes( Blog => $blog ) 994 or return $app->errtrans( "Publish failed: [_1]", $app->errstr ); 993 $app->rebuild_entry( Entry => $entry->id, BuildDependencies => 1 ) 994 or return $app->handle_error( 995 $app->translate( "Publish failed: [_1]", $app->errstr ) ); 996 995 997 $app->_send_comment_notification( $comment, $comment_link, $entry, 996 998 $blog, $commenter ); branches/release-38/lib/MT/WeblogPublisher.pm
r2343 r2350 414 414 : (), 415 415 NoStatic => $param{NoStatic}, 416 #Force => ($param{Force} ? 1 : 0),416 Force => ($param{Force} ? 1 : 0), 417 417 Author => $entry->author, 418 418 ) or return; … … 1803 1803 return 1 if $throttle->{type} != MT::PublishOption::ASYNC(); 1804 1804 1805 return 1 if $args{force}; # if async, but force is used, publish 1806 1805 1807 require MT::TheSchwartz; 1806 1808 require TheSchwartz::Job;
