svnno****@sourc*****
svnno****@sourc*****
2009年 2月 13日 (金) 18:43:38 JST
Revision: 1010 http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1010 Author: tach Date: 2009-02-13 18:43:38 +0900 (Fri, 13 Feb 2009) Log Message: ----------- Fix: dupliicate slashboxes Modified Paths: -------------- slashjp/trunk/Slash/DB/MySQL/MySQL.pm slashjp/trunk/debian/changelog -------------- next part -------------- Modified: slashjp/trunk/Slash/DB/MySQL/MySQL.pm =================================================================== --- slashjp/trunk/Slash/DB/MySQL/MySQL.pm 2009-02-13 09:26:19 UTC (rev 1009) +++ slashjp/trunk/Slash/DB/MySQL/MySQL.pm 2009-02-13 09:43:38 UTC (rev 1010) @@ -10536,7 +10536,8 @@ delete($hashref->{people}); } if (exists $hashref->{slashboxes}) { - my @slashboxes = grep /^[\w-]+$/, split /,/, $hashref->{slashboxes}; + my %seen_boxes; + my @slashboxes = grep { /^[\w-]+$/; ++$seen_boxes{$_} < 2; } split /,/, $hashref->{slashboxes}; map { s/^olderstuff$/mainpage_more/; } @slashboxes; $hashref->{slashboxes} = join ",", @slashboxes; } Modified: slashjp/trunk/debian/changelog =================================================================== --- slashjp/trunk/debian/changelog 2009-02-13 09:26:19 UTC (rev 1009) +++ slashjp/trunk/debian/changelog 2009-02-13 09:43:38 UTC (rev 1010) @@ -7,8 +7,9 @@ * Fix SQL to get top journals at journal_update_slashbox.pl * Change color to red for "This story will not appear" messa****@admin***** * Fix: vanish olderstuff slashbox from top page when moved + * Fix: dupliicate slashboxes - -- Taku YASUI <tach****@osdn*****> Fri, 13 Feb 2009 07:32:33 +0000 + -- Taku YASUI <tach****@osdn*****> Fri, 13 Feb 2009 09:43:12 +0000 slash (2.5.0.233-4) unstable; urgency=low