Content deleted Content added
Updating published sources: SourceUploader: * D'oh! Don't follow the redirect when creating those shutoff talk pages. |
Updating published sources: SourceUploader: * Bypass redirects when redirecting shutoff talk pages to the bot's talk page. |
||
Line 264:
}
$api->task('SourceUploader', 0, 10,
my $src='User:'.$api->user.'/source';
Line 334:
$tpage=~s/^User:/User talk:/;
my $txt=$tpage;
$txt=~s!^(User talk:[^/]+)/.*!
my $r={$api->resolve_redirects($txt)};
if(exists($r->{''})){
$api->warn("Error fetching redirects for $page: ".$r->{''}{'error'}."\n");
return 60;
}
$txt=$r->{$txt};
$txt="#REDIRECT [[$txt]]\n\nThis page is unwatched. Please direct comments to [[$txt]].";
$tok=$api->edittoken($tpage, EditRedir=>1, NoExclusion=>1);
if($tok->{'code'} eq 'shutoff'){
|