[Slashdotjp-dev 1548] [1079] Fix getStoryByTime() condition (never return "neverdisplay" stories )

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 3月 18日 (水) 18:41:17 JST


Revision: 1079
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1079
Author:   tach
Date:     2009-03-18 18:41:17 +0900 (Wed, 18 Mar 2009)

Log Message:
-----------
Fix getStoryByTime() condition (never return "neverdisplay" stories)

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-03-17 08:18:18 UTC (rev 1078)
+++ slashjp/trunk/Slash/DB/MySQL/MySQL.pm	2009-03-18 09:41:17 UTC (rev 1079)
@@ -5994,6 +5994,7 @@
 		 AND time $sign '$time'
 		 AND time <= $now
 		 AND in_trash = 'no'
+		 AND stoid NOT IN (SELECT stoid FROM story_param WHERE name='neverdisplay' AND value=1)
 		 $where",
 		"$groupby ORDER BY time $order LIMIT $limit"
 	);

Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2009-03-17 08:18:18 UTC (rev 1078)
+++ slashjp/trunk/debian/changelog	2009-03-18 09:41:17 UTC (rev 1079)
@@ -9,8 +9,9 @@
       page
     - pollBooth.pl: add first 250 chars of questions on index page
   * Redirect Antenna URL on IndexHandler
+  * Fix getStoryByTime() condition (never return "neverdisplay" stories)
 
- -- Taku YASUI <tach****@osdn*****>  Tue, 17 Mar 2009 08:15:45 +0000
+ -- Taku YASUI <tach****@osdn*****>  Wed, 18 Mar 2009 09:39:55 +0000
 
 slash (2.5.0.233-7) unstable; urgency=low
 



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