From: Chimo Date: Sun, 8 Feb 2015 18:41:29 +0000 (-0500) Subject: Populate 'created' property on ostatus_source X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=11053431d6ffee8a4a6e7c702183ba39a29c7dc8;p=quix0rs-gnu-social.git 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. --- diff --git a/plugins/OStatus/classes/Ostatus_source.php b/plugins/OStatus/classes/Ostatus_source.php index d122a7e7f4..6cecc323e0 100644 --- a/plugins/OStatus/classes/Ostatus_source.php +++ b/plugins/OStatus/classes/Ostatus_source.php @@ -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 {