Content deleted Content added
Updating published sources: d::Redirects: * Make resolve_redirects not get confused by circular redirects. * Fix a few modules that need the same thing. |
Updating published sources: OnThisDayTagger: * Properly handle errors in adding the tag. General: * Fix various use of undefined variable errors. |
||
Line 180:
my $intxt=$tok->{'revisions'}[0]{'*'} // '';
my $outtxt=$self->tag($api, $intxt, %dates);
return 300 unless defined($outtxt);
if($intxt ne $outtxt){
$res=$api->edit($tok, $outtxt, "Adding/updating {{OnThisDay}}. $screwup", 0, 1);
Line 372 ⟶ 373:
my $intxt=$tok->{'revisions'}[0]{'*'} // '';
my $outtxt=$self->tag($api, $intxt, $fday => $revid);
return 300 unless defined($outtxt);
if($intxt ne $outtxt){
$res=$api->edit($tok, $outtxt, "Adding/updating {{OnThisDay}} for $fday. $screwup", 0, 1);
|