From: CiaranG Date: Sun, 19 Jul 2009 07:05:53 +0000 (+0100) Subject: Merge commit 'br3nda/0.8.x-pgfixes' into 0.8.x X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1139f7cad59aa562eb1a7f7691c00392206e73fd;p=quix0rs-gnu-social.git Merge commit 'br3nda/0.8.x-pgfixes' into 0.8.x --- 1139f7cad59aa562eb1a7f7691c00392206e73fd diff --cc classes/Notice.php index 0359c310d4,8974e22f83..101fadb674 --- a/classes/Notice.php +++ b/classes/Notice.php @@@ -873,11 -873,8 +873,11 @@@ class Notice extends Memcached_DataObje if ($cnt > 0) { $qry .= ', '; } - $qry .= '('.$id.', '.$this->id.', '.$source.', "'.$this->created.'") '; + $qry .= '('.$id.', '.$this->id.', '.$source.", '".$this->created. "') "; $cnt++; + if (rand() % NOTICE_INBOX_SOFT_LIMIT == 0) { + Notice_inbox::gc($id); + } if ($cnt >= MAX_BOXCARS) { $inbox = new Notice_inbox(); $inbox->query($qry);