[AnonymousFave][DATABASE] Set the created timestamp on INSERT

This commit is contained in:
Alexei Sorokin 2019-11-01 16:09:09 +03:00
parent fe3e33e702
commit a06b33be66

View File

@ -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(