This patch modifies MT-Blacklist-v1.63 to rebuild entry pages as well as index pages when a trackback ping is received. For more info, see: http://www.unicom.com/chrome/a/000524.html Chip Rosenthal --- extlib/jayallen/MTBlPing.pm.orig Fri Apr 16 14:47:24 2004 +++ extlib/jayallen/MTBlPing.pm Sun Apr 25 15:34:44 2004 @@ -130,9 +130,23 @@ $blog_id = $cat->blog_id; } my $blog = jayallen::Blacklist::_getBlog($blog_id); - $app->rebuild_indexes( Blog => $blog ) - or return $app->_response(Error => - $app->translate("Rebuild failed: [_1]", $app->errstr)); +### $app->rebuild_indexes( Blog => $blog ) +### or return $app->_response(Error => +### $app->translate("Rebuild failed: [_1]", $app->errstr)); + + # + # Rebuild the entry as well as indices. (chip@unicom.com 24-Apr-2004) + # http://philringnalda.com/blog/2002/12/rebuilding_individual_archives_when_pinged.php + # + if ($tb->entry_id) { + $app->rebuild_entry( Entry => $entry, Blog => $blog, BuildDependencies => 1 ) + or return $app->_response(Error => + $app->translate("Rebuild failed: [_1]", $app->errstr)); + } else { + $app->rebuild_indexes( Blog => $blog ) + or return $app->_response(Error => + $app->translate("Rebuild failed: [_1]", $app->errstr)); + } if ($app->{cfg}->GenerateTrackBackRSS) { ## Now generate RSS feed for this trackback item. # end of patch