From: Evan Prodromou Date: Thu, 1 Apr 2010 16:52:26 +0000 (-0400) Subject: Revert "don't insert the same notice twice into an inbox" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a09b27ff41df41a86fdb0abae14239907d5ee6ec;p=quix0rs-gnu-social.git Revert "don't insert the same notice twice into an inbox" This reverts commit 650074c648d98f81674c6e2b0ebf052c473ada6e. --- diff --git a/classes/Inbox.php b/classes/Inbox.php index 0d807946d5..014ba3d829 100644 --- a/classes/Inbox.php +++ b/classes/Inbox.php @@ -114,16 +114,6 @@ class Inbox extends Memcached_DataObject return false; } - $ids = unpack('N*', $inbox->notice_ids); - - // bulk inserts sometimes fail and get restarted. - // Skip if this one has been inserted before. - - if (in_array($notice_id, $ids)) { - // effectively successful - return true; - } - $result = $inbox->query(sprintf('UPDATE inbox '. 'set notice_ids = concat(cast(0x%08x as binary(4)), '. 'substr(notice_ids, 1, %d)) '.