From b3c2dfd9c91e64b31613c2ed0c6c926d0fa50d76 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Fri, 1 Nov 2019 16:09:09 +0300 Subject: [PATCH] [AnonymousFave][DATABASE] Set the created timestamp on INSERT --- plugins/AnonymousFave/classes/Fave_tally.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/AnonymousFave/classes/Fave_tally.php b/plugins/AnonymousFave/classes/Fave_tally.php index c9fe181b6d..0d3a7dc4b3 100644 --- a/plugins/AnonymousFave/classes/Fave_tally.php +++ b/plugins/AnonymousFave/classes/Fave_tally.php @@ -148,6 +148,7 @@ class Fave_tally extends Managed_DataObject $tally = new Fave_tally(); $tally->notice_id = $noticeID; $tally->count = Fave_tally::countExistingFaves($noticeID); + $tally->created = common_sql_now(); $result = $tally->insert(); if (!$result) { $msg = sprintf(