~ubuntu-branches/debian/squeeze/movabletype-opensource/squeeze

« back to all changes in this revision

Viewing changes to lib/MT/Comment.pm

  • Committer: Bazaar Package Importer
  • Author(s): Dominic Hargreaves
  • Date: 2009-06-19 23:03:15 UTC
  • mfrom: (1.2.1 upstream) (9.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090619230315-rm1vcgg5iymu2zh1
Tags: 4.2.6.1-1
* New upstream release
* Update Standards-Version (no changes)
* Don't specify full path to apache2ctl in postinst (thanks, Lintian)
* Remove unused Lintian overrides
* Don't install empty directory in extlib

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd.
 
1
# Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd.
2
2
# This program is distributed under the terms of the
3
3
# GNU General Public License, version 2.
4
4
#
5
 
# $Id: Comment.pm 2642 2008-06-26 01:43:15Z auno $
 
5
# $Id: Comment.pm 3730 2009-05-15 16:05:34Z jmarcotte $
6
6
 
7
7
package MT::Comment;
8
8
 
25
25
        'email' => 'string(75)',
26
26
        'url' => 'string(255)',
27
27
        'text' => 'text',
28
 
        'ip' => 'string(16)',
 
28
        'ip' => 'string(50)',
29
29
        'last_moved_on' => 'datetime not null',
30
30
        'junk_score' => 'float',
31
31
        'junk_log' => 'text',
32
32
        'parent_id' => 'integer',
33
33
    },
34
34
    indexes => {
35
 
        created_on => 1,
36
35
        entry_visible => {
37
36
            columns => [ 'entry_id', 'visible', 'created_on' ],
38
37
        },
 
38
                author => 1,
39
39
        email => 1,
40
40
        commenter_id => 1,
41
 
        parent_id => 1,
42
41
        last_moved_on => 1, # used for junk expiration
43
 
        # For comment throttle check
44
 
        blog_ip_date => {
45
 
            columns => [ 'blog_id', 'ip', 'created_on' ],
46
 
        },
 
42
 
47
43
        # For URL lookups to aid spam filtering
48
44
        blog_url => {
49
45
            columns => [ 'blog_id', 'visible', 'url' ],
54
50
        blog_visible => {
55
51
            columns => [ 'blog_id', 'visible', 'created_on', 'id' ],
56
52
        },
 
53
                dd_coment_vis_mod => {
 
54
                        columns => [ 'visible', 'modified_on' ],
 
55
                },
57
56
        visible_date => {
58
57
            columns => [ 'visible', 'created_on' ],
59
58
        },
60
 
        junk_date => {
61
 
            columns => [ 'junk_status', 'created_on' ],
62
 
        },
63
59
    },
64
60
    meta => 1,
65
61
    defaults => {