svnno****@sourc*****
svnno****@sourc*****
2008年 4月 21日 (月) 21:59:21 JST
Revision: 591 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=591 Author: tach Date: 2008-04-21 21:59:20 +0900 (Mon, 21 Apr 2008) Log Message: ----------- * Update journal-story discussions' title/url to story title/url when vars update_journal_story_discussion_to_story has been enabled. Modified Paths: -------------- slashjp/trunk/Slash/DB/MySQL/MySQL.pm slashjp/trunk/debian/changelog slashjp/trunk/plugins/Journal/Journal.pm slashjp/trunk/sql/mysql/defaults.sql -------------- next part -------------- Modified: slashjp/trunk/Slash/DB/MySQL/MySQL.pm =================================================================== --- slashjp/trunk/Slash/DB/MySQL/MySQL.pm 2008-04-16 12:44:33 UTC (rev 590) +++ slashjp/trunk/Slash/DB/MySQL/MySQL.pm 2008-04-21 12:59:20 UTC (rev 591) @@ -7696,7 +7696,8 @@ # of these changes, if we need to make them -- pudge # update later in task - delete @{$discussion}{qw(title url ts)}; + delete @{$discussion}{qw(ts)}; + delete @{$discussion}{qw(title url)} unless ($constants->{update_journal_story_discussion_to_story}); delete $discussion->{uid}; # leave it "owned" by poster $id = $story->{discussion}; @@ -7865,7 +7866,8 @@ my $story = $self->getStory($stoid); # will be updated later by journal_fix.pl if ($story->{journal_id}) { - delete @{$dis_data}{qw(title url ts)}; + delete @{$dis_data}{qw(ts)}; + delete @{$discussion}{qw(title url)} unless ($constants->{update_journal_story_discussion_to_story}); } if (!$error) { Modified: slashjp/trunk/debian/changelog =================================================================== --- slashjp/trunk/debian/changelog 2008-04-16 12:44:33 UTC (rev 590) +++ slashjp/trunk/debian/changelog 2008-04-21 12:59:20 UTC (rev 591) @@ -5,8 +5,10 @@ * Fix: user karma_bonus settings are vanished... * Fix: comment count fail when user hardthresh setting is enabled * Remove "tid=" from story link at stories + * Update journal-story discussions' title/url to story title/url when vars + update_journal_story_discussion_to_story has been enabled. - -- Taku YASUI <tach****@osdn*****> Wed, 16 Apr 2008 12:01:35 +0000 + -- Taku YASUI <tach****@osdn*****> Mon, 21 Apr 2008 21:58:15 +0900 slash (2.5.0.200-1) unstable; urgency=low Modified: slashjp/trunk/plugins/Journal/Journal.pm =================================================================== --- slashjp/trunk/plugins/Journal/Journal.pm 2008-04-16 12:44:33 UTC (rev 590) +++ slashjp/trunk/plugins/Journal/Journal.pm 2008-04-21 12:59:20 UTC (rev 591) @@ -657,6 +657,7 @@ url => $url, ts => $journal_story->{'time'} }; + delete @{$discussion}{qw(title url)} if ($constants->{update_journal_story_discussion_to_story}); if ($self->setDiscussion($journal_story->{discussion}, $discussion)) { $self->sqlUpdate('journal_transfer', { Modified: slashjp/trunk/sql/mysql/defaults.sql =================================================================== --- slashjp/trunk/sql/mysql/defaults.sql 2008-04-16 12:44:33 UTC (rev 590) +++ slashjp/trunk/sql/mysql/defaults.sql 2008-04-21 12:59:20 UTC (rev 591) @@ -1119,7 +1119,7 @@ INSERT INTO vars (name, value, description) VALUES ('writestatus','dirty','Simple Boolean to determine if homepage needs rewriting'); INSERT INTO vars (name, value, description) VALUES ('xhtml','0','Boolean for whether we are using XHTML'); -# add constants for OSDN Japan +-- add constants for OSDN Japan INSERT IGNORE INTO vars (name, value, description) VALUES ('ldap_attrib_prefix','','attribute prefix for LDAP migration'); INSERT IGNORE INTO vars (name, value, description) VALUES ('ldap_base_dn','','base dn for LDAP migration'); INSERT IGNORE INTO vars (name, value, description) VALUES ('ldap_bind_dn','','binddn for LDAP migration'); @@ -1141,6 +1141,7 @@ INSERT IGNORE INTO vars (name, value, description) VALUES ('no_d2','0','When "1", disable using discussion2.'); INSERT IGNORE INTO vars (name, value, description) VALUES ('firehose_name','Firehose','The name of "Firehose" function'); 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'); 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';