mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Fix missing transaction constants in Phame
Summary: Trailing logs for errors here, picked up some unset constants in Phame. Test Plan: New Blog, New Post, tail daemon log for errors. See feed stories. Reviewers: epriestley, amckinley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D17871
This commit is contained in:
parent
28a23e3822
commit
7aeb498565
2 changed files with 9 additions and 9 deletions
|
@ -88,7 +88,7 @@ final class PhamePostEditor
|
|||
} else {
|
||||
foreach ($xactions as $xaction) {
|
||||
switch ($xaction->getTransactionType()) {
|
||||
case PhamePostTransaction::TYPE_VISIBILITY:
|
||||
case PhamePostVisibilityTransaction::TRANSACTIONTYPE:
|
||||
if (!$object->isDraft() && !$object->isArchived()) {
|
||||
$body->addRemarkupSection(null, $object->getBody());
|
||||
}
|
||||
|
|
|
@ -26,14 +26,14 @@ final class PhameBlogTransaction
|
|||
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
|
||||
$tags[] = self::MAILTAG_SUBSCRIBERS;
|
||||
break;
|
||||
case self::TYPE_NAME:
|
||||
case self::TYPE_SUBTITLE:
|
||||
case self::TYPE_DESCRIPTION:
|
||||
case self::TYPE_FULLDOMAIN:
|
||||
case self::TYPE_PARENTSITE:
|
||||
case self::TYPE_PARENTDOMAIN:
|
||||
case self::TYPE_PROFILEIMAGE:
|
||||
case self::TYPE_HEADERIMAGE:
|
||||
case PhameBlogNameTransaction::TRANSACTIONTYPE:
|
||||
case PhameBlogSubtitleTransaction::TRANSACTIONTYPE:
|
||||
case PhameBlogDescriptionTransaction::TRANSACTIONTYPE:
|
||||
case PhameBlogFullDomainTransaction::TRANSACTIONTYPE:
|
||||
case PhameBlogParentSiteTransaction::TRANSACTIONTYPE:
|
||||
case PhameBlogParentDomainTransaction::TRANSACTIONTYPE:
|
||||
case PhameBlogProfileImageTransaction::TRANSACTIONTYPE:
|
||||
case PhameBlogHeaderImageTransaction::TRANSACTIONTYPE:
|
||||
$tags[] = self::MAILTAG_DETAILS;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue