@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add CCs to Phriction Edit page

Summary: Fixes T4099. Allows prepopulating CCs when building Phriction pages.

Test Plan: Add notchad, remove notchad.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T4099

Differential Revision: https://secure.phabricator.com/D14042

+13
+13
src/applications/phriction/controller/PhrictionEditController.php
··· 109 109 $notes = null; 110 110 $title = $content->getTitle(); 111 111 $overwrite = false; 112 + $v_cc = PhabricatorSubscribersQuery::loadSubscribersForPHID( 113 + $document->getPHID()); 112 114 113 115 if ($request->isFormPost()) { 114 116 ··· 118 120 $current_version = $request->getInt('contentVersion'); 119 121 $v_view = $request->getStr('viewPolicy'); 120 122 $v_edit = $request->getStr('editPolicy'); 123 + $v_cc = $request->getArr('cc'); 121 124 122 125 $xactions = array(); 123 126 $xactions[] = id(new PhrictionTransaction()) ··· 132 135 $xactions[] = id(new PhrictionTransaction()) 133 136 ->setTransactionType(PhabricatorTransactions::TYPE_EDIT_POLICY) 134 137 ->setNewValue($v_edit); 138 + $xactions[] = id(new PhrictionTransaction()) 139 + ->setTransactionType(PhabricatorTransactions::TYPE_SUBSCRIBERS) 140 + ->setNewValue(array('=' => $v_cc)); 135 141 136 142 $editor = id(new PhrictionTransactionEditor()) 137 143 ->setActor($viewer) ··· 222 228 ->setName('content') 223 229 ->setID('document-textarea') 224 230 ->setUser($viewer)) 231 + ->appendControl( 232 + id(new AphrontFormTokenizerControl()) 233 + ->setLabel(pht('Subscribers')) 234 + ->setName('cc') 235 + ->setValue($v_cc) 236 + ->setUser($viewer) 237 + ->setDatasource(new PhabricatorMetaMTAMailableDatasource())) 225 238 ->appendChild( 226 239 id(new AphrontFormPolicyControl()) 227 240 ->setName('viewPolicy')