Page MenuHomePhabricator

D20341.diff
No OneTemporary

D20341.diff

diff --git a/src/applications/conpherence/engineextension/ConpherenceThreadIndexEngineExtension.php b/src/applications/conpherence/engineextension/ConpherenceThreadIndexEngineExtension.php
--- a/src/applications/conpherence/engineextension/ConpherenceThreadIndexEngineExtension.php
+++ b/src/applications/conpherence/engineextension/ConpherenceThreadIndexEngineExtension.php
@@ -51,13 +51,16 @@
ConpherenceThread $thread,
ConpherenceTransaction $xaction) {
- $previous = id(new ConpherenceTransactionQuery())
+ $pager = id(new AphrontCursorPagerView())
+ ->setPageSize(1)
+ ->setAfterID($xaction->getID());
+
+ $previous_xactions = id(new ConpherenceTransactionQuery())
->setViewer($this->getViewer())
->withObjectPHIDs(array($thread->getPHID()))
->withTransactionTypes(array(PhabricatorTransactions::TYPE_COMMENT))
- ->setAfterID($xaction->getID())
- ->setLimit(1)
- ->executeOne();
+ ->executeWithCursorPager($pager);
+ $previous = head($previous_xactions);
$index = id(new ConpherenceIndex())
->setThreadPHID($thread->getPHID())

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 3, 9:04 PM (21 h, 10 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7087809
Default Alt Text
D20341.diff (1 KB)

Event Timeline