summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-01-22 18:03:48 -0500
committerCraig Andrews <candrews@integralblue.com>2010-01-22 18:03:48 -0500
commit767b77d6c2291d6e7f4795ce18c70d5354a07de9 (patch)
treea1825ab6ae35ef4420dbef12b282a7e12ccef7b3
parentb34bbb0e8045008a0048829672af905385241735 (diff)
parent845f051c2f85248ef85d0a34f032792ca83f04a4 (diff)
Merge branch '0.9.x' into 1.0.x
-rw-r--r--lib/stompqueuemanager.php21
1 files changed, 1 insertions, 20 deletions
diff --git a/lib/stompqueuemanager.php b/lib/stompqueuemanager.php
index 8f0091a13..4bbdeedc2 100644
--- a/lib/stompqueuemanager.php
+++ b/lib/stompqueuemanager.php
@@ -294,26 +294,7 @@ class StompQueueManager extends QueueManager
StatusNet::init($site);
}
- if (is_numeric($frame->body)) {
- $id = intval($frame->body);
- $info = "notice $id posted at {$frame->headers['created']} in queue $queue";
-
- $notice = Notice::staticGet('id', $id);
- if (empty($notice)) {
- $this->_log(LOG_WARNING, "Skipping missing $info");
- $this->ack($frame);
- $this->commit();
- $this->begin();
- $this->stats('badnotice', $queue);
- return false;
- }
-
- $item = $notice;
- } else {
- // @fixme should we serialize, or json, or what here?
- $info = "string posted at {$frame->headers['created']} in queue $queue";
- $item = $frame->body;
- }
+ $item = $this->decode($frame->body);
$handler = $this->getHandler($queue);
if (!$handler) {