Commit 11053431 authored by Chimo's avatar Chimo

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.
parent 1c478768
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment