1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-22 12:41:19 +01:00

Don't show Phriction draft edit events in feed

Summary: Depends on D19663. Ref T13077. When you edit a Phriction draft, don't publish a feed story. (The eventual "Publish" event gets a story.)

Test Plan: Made draft / non-draft / publish edits, only saw feed stories for non-draft and publish edits.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13077

Differential Revision: https://secure.phabricator.com/D19664
This commit is contained in:
epriestley 2018-09-11 13:38:16 -07:00
parent b6ba75d991
commit 0089ef4b60

View file

@ -11,6 +11,10 @@ final class PhrictionDocumentDraftTransaction
$this->getEditor()->setShouldPublishContent($object, false);
}
public function shouldHideForFeed() {
return true;
}
public function validateTransactions($object, array $xactions) {
$errors = array();