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

This commit is contained in:
Alexei Sorokin 2019-11-01 16:09:09 +03:00 committed by Diogo Peralta Cordeiro
parent 0c1e9bbc17
commit b3c2dfd9c9

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(