[Slashdotjp-dev 978] [502] Revert to old (before 2.5.0.190) format of index.pl comment links

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 2月 8日 (金) 19:03:48 JST


Revision: 502
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=502
Author:   tach
Date:     2008-02-08 19:03:47 +0900 (Fri, 08 Feb 2008)

Log Message:
-----------
Revert to old (before 2.5.0.190) format of index.pl comment links

Modified Paths:
--------------
    slashjp/trunk/debian/changelog
    slashjp/trunk/themes/slashcode/htdocs/index.pl


-------------- next part --------------
Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2008-02-08 06:40:00 UTC (rev 501)
+++ slashjp/trunk/debian/changelog	2008-02-08 10:03:47 UTC (rev 502)
@@ -3,8 +3,9 @@
   * Fix: Undefined subroutine &Slash::Apache::User::PasswordSalt::getSalts
     called at /usr/lib/perl5/Slash/Utility/Data.pm line 872.
   * Fix: use "dkid" instead of "kind" at plugins/Journal/Journal.pm
+  * Revert to old (before 2.5.0.190) format of index.pl comment links
 
- -- Taku YASUI <tach****@debia*****>  Fri, 08 Feb 2008 05:55:13 +0900
+ -- Taku YASUI <tach****@osdn*****>  Fri, 08 Feb 2008 19:01:51 +0900
 
 slash (2.5.0.192-1) unstable; urgency=low
 

Modified: slashjp/trunk/themes/slashcode/htdocs/index.pl
===================================================================
--- slashjp/trunk/themes/slashcode/htdocs/index.pl	2008-02-08 06:40:00 UTC (rev 501)
+++ slashjp/trunk/themes/slashcode/htdocs/index.pl	2008-02-08 10:03:47 UTC (rev 502)
@@ -682,10 +682,23 @@
 
 			my @commentcount_link;
 			my $thresh = $threshComments[1];  # threshold == 0
+			$thresh = $user->{threshold} && $user->{threshold} > -1
+				? $threshComments[$user->{threshold} + 1]
+				: $threshComments[1];  # threshold == 0
 
+			if ($user->{threshold} > -1 && $story->{commentcount} ne $thresh) {
+				$commentcount_link[0] = linkStory({
+					sid		=> $story->{sid},
+					tid		=> $story->{tid},
+					'link'		=> $thresh,
+					skin		=> $story->{primaryskid},
+				}, '', $ls_other);
+			}
+
 			$commentcount_link[1] = linkStory({
 				sid		=> $story->{sid},
 				tid		=> $story->{tid},
+				threshold	=> -1,
 				'link'		=> $story->{commentcount} || 0,
 				skin		=> $story->{primaryskid}
 			}, '', $ls_other);


Slashdotjp-dev メーリングリストの案内
Back to archive index