Page MenuHomePhabricator

D17850.diff
No OneTemporary

D17850.diff

diff --git a/src/applications/phame/editor/PhameBlogEditEngine.php b/src/applications/phame/editor/PhameBlogEditEngine.php
--- a/src/applications/phame/editor/PhameBlogEditEngine.php
+++ b/src/applications/phame/editor/PhameBlogEditEngine.php
@@ -76,6 +76,7 @@
->setConduitDescription(pht('Retitle the blog.'))
->setConduitTypeDescription(pht('New blog title.'))
->setTransactionType(PhameBlogNameTransaction::TRANSACTIONTYPE)
+ ->setIsRequired(true)
->setValue($object->getName()),
id(new PhabricatorTextEditField())
->setKey('subtitle')
diff --git a/src/applications/phame/editor/PhamePostEditEngine.php b/src/applications/phame/editor/PhamePostEditEngine.php
--- a/src/applications/phame/editor/PhamePostEditEngine.php
+++ b/src/applications/phame/editor/PhamePostEditEngine.php
@@ -98,6 +98,7 @@
->setConduitDescription(pht('Retitle the post.'))
->setConduitTypeDescription(pht('New post title.'))
->setTransactionType(PhamePostTitleTransaction::TRANSACTIONTYPE)
+ ->setIsRequired(true)
->setValue($object->getTitle()),
id(new PhabricatorTextEditField())
->setKey('subtitle')
diff --git a/src/applications/phame/storage/PhamePostTransaction.php b/src/applications/phame/storage/PhamePostTransaction.php
--- a/src/applications/phame/storage/PhamePostTransaction.php
+++ b/src/applications/phame/storage/PhamePostTransaction.php
@@ -34,9 +34,9 @@
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
$tags[] = self::MAILTAG_SUBSCRIBERS;
break;
- case self::TYPE_TITLE:
- case self::TYPE_SUBTITLE:
- case self::TYPE_BODY:
+ case PhamePostTitleTransaction::TRANSACTIONTYPE:
+ case PhamePostSubtitleTransaction::TRANSACTIONTYPE:
+ case PhamePostBodyTransaction::TRANSACTIONTYPE:
$tags[] = self::MAILTAG_CONTENT;
break;
default:

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 26, 7:28 AM (1 w, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7719889
Default Alt Text
D17850.diff (1 KB)

Event Timeline