]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Populate 'created' property on attention
authorChimo <chimo@chromic.org>
Sun, 8 Feb 2015 19:47:03 +0000 (14:47 -0500)
committerChimo <chimo@chromic.org>
Sun, 8 Feb 2015 19:47:03 +0000 (14:47 -0500)
The 'created' column in attention SQL table has NOT NULL
restriction.

classes/Attention.php

index d152ff892aa053878c58d17019822d637732c665..ef0dcb1df7dd4dc56798f087bafdcb48374506da 100644 (file)
@@ -56,6 +56,7 @@ class Attention extends Managed_DataObject
         $att->notice_id = $notice->getID();
         $att->profile_id = $profile->getID();
         $att->reason = $reason;
+        $att->created = common_sql_now();
         $result = $att->insert();
 
         if ($result === false) {