⌈⌋ branch:  freshcode


Check-in [b738d1c708]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1:b738d1c70851161d012cbdfc44699797576bec6b
Date: 2016-05-05 02:10:23
User: mario
Comment:Allow delayed inserts (releases.json with preset t_published timestamp)
Tags And Properties
  • branch=trunk inherited from [82405bb421]
  • sym-trunk inherited from [82405bb421]
Context
2016-05-05
02:11
[baa7cdd341] Edit spam filter. (user: mario, tags: trunk)
02:10
[b738d1c708] Allow delayed inserts (releases.json with preset t_published timestamp) (user: mario, tags: trunk)
2016-03-27
21:55
[95fcd4b384] Add basic spam checks. (user: mario, tags: trunk)
Changes

Changes to cron.daily/incoming_spool.php.

80
81
82
83
84
85
86
87

88
89
90
91
92
93
94
        // store new project/release entry
        $rel = new release($p["name"]);
        $rel->update(
            $p,    // imported fields
            [],    // no prefill
            [      // but override_flags:
               "hidden" => intval(!empty($p["hidden"])),
               "via" => empty($p["via"]) ? "spool" : $p["via"]

            ],
            TRUE   // can be partial updates
        );
        $rel->store();
        print_r($rel);
        rename($fn, "incoming/done/$alt_fn");








|
>







80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
        // store new project/release entry
        $rel = new release($p["name"]);
        $rel->update(
            $p,    // imported fields
            [],    // no prefill
            [      // but override_flags:
               "hidden" => intval(!empty($p["hidden"])),
               "via" => empty($p["via"]) ? "spool" : $p["via"],
               "published" => !empty($p["t_published"]) ? $p["t_published"] : time()
            ],
            TRUE   // can be partial updates
        );
        $rel->store();
        print_r($rel);
        rename($fn, "incoming/done/$alt_fn");