リビジョン | 3e90a0b393a3fdc9c3236e6d2a3dca2718f862d8 (tree) |
---|---|
日時 | 2017-12-01 18:44:03 |
作者 | hylom <hylom@user...> |
コミッター | hylom |
@@ -452,6 +452,7 @@ EOSQL | ||
452 | 452 | tid => $params->{tid} || 2068, |
453 | 453 | posttype => $post_type, |
454 | 454 | date => strftime("%F %T", gmtime), |
455 | + discussion => $discussion_id, | |
455 | 456 | }; |
456 | 457 | # TODO: update firehose's timestamp. |
457 | 458 | # create firehose item |
@@ -948,10 +949,10 @@ sub create_firehose_item { | ||
948 | 949 | # TODO: sprite_info column don't have default value... |
949 | 950 | my $sql = <<"EOSQL"; |
950 | 951 | INSERT INTO firehose |
951 | - (uid, globjid, type, createtime, popularity, editorpop, public, attention_needed, primaryskid, tid, srcid, | |
952 | + (uid, globjid, discussion, type, createtime, popularity, editorpop, public, attention_needed, primaryskid, tid, srcid, | |
952 | 953 | url_id, email, emaildomain, name, ipid, subnetid, sprite_info) |
953 | 954 | VALUES |
954 | - (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, | |
955 | + (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, | |
955 | 956 | ?, ?, ?, ?, ?, ?, "") |
956 | 957 | EOSQL |
957 | 958 | my $dbh = $self->connect_db; |
@@ -972,6 +973,7 @@ EOSQL | ||
972 | 973 | my $rs = $dbh->do($sql, undef, |
973 | 974 | $journal->{uid} || $journal->{user_id}, #uid |
974 | 975 | $globj_id, #globjid |
976 | + $journal->{discussion} || 0, | |
975 | 977 | "journal", #type |
976 | 978 | $journal->{date} || $journal->{create_time}, #createtime |
977 | 979 | $popularity, #popularity |