svnno****@sourc*****
svnno****@sourc*****
2008年 5月 1日 (木) 23:30:15 JST
Revision: 626 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=626 Author: tach Date: 2008-05-01 23:30:14 +0900 (Thu, 01 May 2008) Log Message: ----------- * Add feature to change automatic tag stories to use topic.textname instead of topic.keyword - use $constants->{autoaddstorytopics_use_textname} Modified Paths: -------------- slashjp/branches/2.5.0.192/debian/changelog slashjp/branches/2.5.0.192/plugins/Admin/admin.pl slashjp/branches/2.5.0.192/plugins/Tags/mysql_dump.sql -------------- next part -------------- Modified: slashjp/branches/2.5.0.192/debian/changelog =================================================================== --- slashjp/branches/2.5.0.192/debian/changelog 2008-05-01 12:06:36 UTC (rev 625) +++ slashjp/branches/2.5.0.192/debian/changelog 2008-05-01 14:30:14 UTC (rev 626) @@ -5,8 +5,11 @@ * Add feature to change whether nexus topics will be shown or not on topic list - use $constants->{topiclist_dont_show_nexuses} + * Add feature to change automatic tag stories to use topic.textname instead + of topic.keyword + - use $constants->{autoaddstorytopics_use_textname} - -- Taku YASUI <tach****@osdn*****> Thu, 1 May 2008 12:05:31 +0000 + -- Taku YASUI <tach****@osdn*****> Thu, 1 May 2008 14:27:42 +0000 slash (2.5.0.192-10) unstable; urgency=low Modified: slashjp/branches/2.5.0.192/plugins/Admin/admin.pl =================================================================== --- slashjp/branches/2.5.0.192/plugins/Admin/admin.pl 2008-05-01 12:06:36 UTC (rev 625) +++ slashjp/branches/2.5.0.192/plugins/Admin/admin.pl 2008-05-01 14:30:14 UTC (rev 626) @@ -2542,7 +2542,7 @@ for my $tid (keys %$chosen_hr) { next unless $chosen_hr->{$tid} > 0; # must have weight next unless $tree->{$tid}{image}; # must have an image - my $kw = $tree->{$tid}{keyword}; + my $kw = $constants->{autoaddstorytopics_use_textname} ? $tree->{$tid}{textname} : $tree->{$tid}{keyword}; next unless $tagsdb->tagnameSyntaxOK($kw); # must be a valid tagname $tt{$kw} = 1; } Modified: slashjp/branches/2.5.0.192/plugins/Tags/mysql_dump.sql =================================================================== --- slashjp/branches/2.5.0.192/plugins/Tags/mysql_dump.sql 2008-05-01 12:06:36 UTC (rev 625) +++ slashjp/branches/2.5.0.192/plugins/Tags/mysql_dump.sql 2008-05-01 14:30:14 UTC (rev 626) @@ -53,3 +53,5 @@ #INSERT INTO tagboxes VALUES (NULL, 'tag_count', 'user', '1.0', 0, NULL); +-- for slashdot.jp +INSERT IGNORE INTO vars (name, value, description) VALUES ('autoaddstorytopics_use_textname', '1', 'Use "textname" instead of "keyword" for Auto-add tags for story topic');