⌈⌋ branch:  freshcode


Check-in [b738d1c708]

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

Overview
Comment:Allow delayed inserts (releases.json with preset t_published timestamp)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b738d1c70851161d012cbdfc44699797576bec6b
User & Date: mario 2016-05-05 02:10:23
Context
2016-05-05
02:11
Edit spam filter. check-in: baa7cdd341 user: mario tags: trunk
02:10
Allow delayed inserts (releases.json with preset t_published timestamp) check-in: b738d1c708 user: mario tags: trunk
2016-03-27
21:55
Add basic spam checks. check-in: 95fcd4b384 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");