[Slashdotjp-dev 1098] [625] * Add feature to change whether nexus topics will be shown or not on topic

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2008年 5月 1日 (木) 21:06:36 JST


Revision: 625
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=625
Author:   tach
Date:     2008-05-01 21:06:36 +0900 (Thu, 01 May 2008)

Log Message:
-----------
 * Add feature to change whether nexus topics will be shown or not on topic
   list
   - use $constants->{topiclist_dont_show_nexuses}

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/debian/changelog
    slashjp/branches/2.5.0.192/sql/mysql/defaults.sql
    slashjp/branches/2.5.0.192/themes/slashcode/htdocs/topics.pl


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/debian/changelog
===================================================================
--- slashjp/branches/2.5.0.192/debian/changelog	2008-05-01 09:34:31 UTC (rev 624)
+++ slashjp/branches/2.5.0.192/debian/changelog	2008-05-01 12:06:36 UTC (rev 625)
@@ -2,8 +2,11 @@
 
   * Change RSS item description suffix
     - use template "rss_item_description;misc;default" to change description
+  * Add feature to change whether nexus topics will be shown or not on topic
+    list
+    - use $constants->{topiclist_dont_show_nexuses}
 
- -- Taku YASUI <tach****@osdn*****>  Thu,  1 May 2008 09:33:34 +0000
+ -- Taku YASUI <tach****@osdn*****>  Thu,  1 May 2008 12:05:31 +0000
 
 slash (2.5.0.192-10) unstable; urgency=low
 

Modified: slashjp/branches/2.5.0.192/sql/mysql/defaults.sql
===================================================================
--- slashjp/branches/2.5.0.192/sql/mysql/defaults.sql	2008-05-01 09:34:31 UTC (rev 624)
+++ slashjp/branches/2.5.0.192/sql/mysql/defaults.sql	2008-05-01 12:06:36 UTC (rev 625)
@@ -1142,6 +1142,7 @@
 INSERT IGNORE INTO vars (name, value, description) VALUES ('rss_use_story_shtml','0','Use ${sid}.shtml for RSS/RDF link');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('update_journal_story_discussion_to_story','0','Update discussion of journal-story title/url to story title/url');
 INSERT IGNORE INTO vars (name, value, description) VALUES ('firehose_disable_to_show_publicized_journals','1','Do not show publicized(story-submitted) journals as firehose item');
+INSERT IGNORE INTO vars (name, value, description) VALUES ('topiclist_dont_show_nexuses','1','Do not show nexus topics on topic list');
 UPDATE vars SET value='text/html; charset=UTF-8' WHERE name='content_type_webpage';
 UPDATE vars SET value='0' WHERE name='draconian_charset';
 UPDATE vars SET value='UTF-8' WHERE name='rdfencoding';

Modified: slashjp/branches/2.5.0.192/themes/slashcode/htdocs/topics.pl
===================================================================
--- slashjp/branches/2.5.0.192/themes/slashcode/htdocs/topics.pl	2008-05-01 09:34:31 UTC (rev 624)
+++ slashjp/branches/2.5.0.192/themes/slashcode/htdocs/topics.pl	2008-05-01 12:06:36 UTC (rev 625)
@@ -67,6 +67,10 @@
 		$topics = \%new_topics;
 	}
 
+	foreach my $id ($reader->getNexusTids()) {
+		delete($topics->{$id}) if ($constants->{topiclist_dont_show_nexuses});
+	}
+
 	slashDisplay('listTopics', {
 		title		=> getData('current_topics'),
 		width		=> '90%',


Slashdotjp-dev メーリングリストの案内
アーカイブの一覧に戻る