diff --git a/src/applications/phriction/xaction/PhrictionDocumentDraftTransaction.php b/src/applications/phriction/xaction/PhrictionDocumentDraftTransaction.php index b2f39485fc..3fc9d63ca8 100644 --- a/src/applications/phriction/xaction/PhrictionDocumentDraftTransaction.php +++ b/src/applications/phriction/xaction/PhrictionDocumentDraftTransaction.php @@ -1,35 +1,39 @@ getEditor()->setShouldPublishContent($object, false); } + public function shouldHideForFeed() { + return true; + } + public function validateTransactions($object, array $xactions) { $errors = array(); // NOTE: We're only validating that you can't edit a document down to // nothing in a draft transaction. Alone, this doesn't prevent you from // creating a document with no content. The content transaction has // validation for that. if (!$xactions) { return $errors; } $content = $object->getContent()->getContent(); if ($this->isEmptyTextTransaction($content, $xactions)) { $errors[] = $this->newRequiredError( pht('Documents must have content.')); } return $errors; } }