summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-01 12:52:26 -0400
committerEvan Prodromou <evan@status.net>2010-04-01 12:52:26 -0400
commita09b27ff41df41a86fdb0abae14239907d5ee6ec (patch)
tree2d60c3d6ca65e8b99fbdc730571d1bdea845f6db /classes
parent8b24ad8a9c681585e95612084eb629df8b364b74 (diff)
Revert "don't insert the same notice twice into an inbox"
This reverts commit 650074c648d98f81674c6e2b0ebf052c473ada6e.
Diffstat (limited to 'classes')
-rw-r--r--classes/Inbox.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/classes/Inbox.php b/classes/Inbox.php
index 0d807946d..014ba3d82 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)) '.