Content deleted Content added
Updating published sources: DeletionSortingCleaner: * Shorten edit summary on the main deletion sorting pages |
Updating published sources: DeletionSortingCleaner: * Clean up logging |
||
Line 119:
# pages. For each one, subst any substable templates and then see if it
# looks closed.
$api->log("Processing $page...");▼
my $intxt=$tok->{'revisions'}[0]{'*'};
my @archive=@{$api->store->{"archive $page"} // []}; # Load saved archivals
Line 245 ⟶ 244:
# Now do the saving
if($outtxt ne $intxt){
$res=$api->edit($tok, $outtxt, "[[$page/archive|Archiving closed XfDs]]".$screwup, 0, 1);
if($res->{'code'} ne 'success'){
Line 256:
}
if(defined($atok)){
$api->log("Archiving closed XfDs to $page/archive...");
$res=$api->edit($atok, $atxt, "Archiving closed XfDs from [[$page]]".$screwup, 0, 1);
if($res->{'code'} ne 'success'){
|