Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18712265
D10725.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
974 B
Referenced Files
None
Subscribers
None
D10725.id.diff
View Options
diff --git a/src/applications/pholio/editor/PholioMockEditor.php b/src/applications/pholio/editor/PholioMockEditor.php
--- a/src/applications/pholio/editor/PholioMockEditor.php
+++ b/src/applications/pholio/editor/PholioMockEditor.php
@@ -462,18 +462,17 @@
HeraldAdapter $adapter,
HeraldTranscript $transcript) {
- // TODO: Convert this to be transaction-based.
+ $xactions = array();
$cc_phids = $adapter->getCcPHIDs();
if ($cc_phids) {
- id(new PhabricatorSubscriptionsEditor())
- ->setObject($object)
- ->setActor($this->requireActor())
- ->subscribeImplicit($cc_phids)
- ->save();
+ $value = array_fuse($cc_phids);
+ $xactions[] = id(new PholioTransaction())
+ ->setTransactionType(PhabricatorTransactions::TYPE_SUBSCRIBERS)
+ ->setNewValue(array('+' => $value));
}
- return array();
+ return $xactions;
}
protected function sortTransactions(array $xactions) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sep 30 2025, 5:19 AM (12 w, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8923744
Default Alt Text
D10725.id.diff (974 B)
Attached To
Mode
D10725: Pholio - upgrade herald effects to use transactions
Attached
Detach File
Event Timeline
Log In to Comment