Populate 'created' property on ostatus_source

The 'created' column in ostatus_source SQL table has NOT NULL restriction.
INSERTs fail when running MySQL/MariaDB in strict mode if this is not
populated.
This commit is contained in:
Chimo 2015-02-08 13:41:29 -05:00
parent 1c478768ad
commit 11053431d6

View File

@ -66,6 +66,7 @@ class Ostatus_source extends Managed_DataObject
$osource->notice_id = $notice->id;
$osource->profile_uri = $oprofile->uri;
$osource->method = $method;
$osource->created = common_sql_now();
if ($osource->insert()) {
return true;
} else {