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:
parent
1c478768ad
commit
11053431d6
@ -66,6 +66,7 @@ class Ostatus_source extends Managed_DataObject
|
|||||||
$osource->notice_id = $notice->id;
|
$osource->notice_id = $notice->id;
|
||||||
$osource->profile_uri = $oprofile->uri;
|
$osource->profile_uri = $oprofile->uri;
|
||||||
$osource->method = $method;
|
$osource->method = $method;
|
||||||
|
$osource->created = common_sql_now();
|
||||||
if ($osource->insert()) {
|
if ($osource->insert()) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user