mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +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 {
|
} else {
|
||||||
foreach ($xactions as $xaction) {
|
foreach ($xactions as $xaction) {
|
||||||
switch ($xaction->getTransactionType()) {
|
switch ($xaction->getTransactionType()) {
|
||||||
case PhamePostTransaction::TYPE_VISIBILITY:
|
case PhamePostVisibilityTransaction::TRANSACTIONTYPE:
|
||||||
if (!$object->isDraft() && !$object->isArchived()) {
|
if (!$object->isDraft() && !$object->isArchived()) {
|
||||||
$body->addRemarkupSection(null, $object->getBody());
|
$body->addRemarkupSection(null, $object->getBody());
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,14 +26,14 @@ final class PhameBlogTransaction
|
||||||
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
|
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
|
||||||
$tags[] = self::MAILTAG_SUBSCRIBERS;
|
$tags[] = self::MAILTAG_SUBSCRIBERS;
|
||||||
break;
|
break;
|
||||||
case self::TYPE_NAME:
|
case PhameBlogNameTransaction::TRANSACTIONTYPE:
|
||||||
case self::TYPE_SUBTITLE:
|
case PhameBlogSubtitleTransaction::TRANSACTIONTYPE:
|
||||||
case self::TYPE_DESCRIPTION:
|
case PhameBlogDescriptionTransaction::TRANSACTIONTYPE:
|
||||||
case self::TYPE_FULLDOMAIN:
|
case PhameBlogFullDomainTransaction::TRANSACTIONTYPE:
|
||||||
case self::TYPE_PARENTSITE:
|
case PhameBlogParentSiteTransaction::TRANSACTIONTYPE:
|
||||||
case self::TYPE_PARENTDOMAIN:
|
case PhameBlogParentDomainTransaction::TRANSACTIONTYPE:
|
||||||
case self::TYPE_PROFILEIMAGE:
|
case PhameBlogProfileImageTransaction::TRANSACTIONTYPE:
|
||||||
case self::TYPE_HEADERIMAGE:
|
case PhameBlogHeaderImageTransaction::TRANSACTIONTYPE:
|
||||||
$tags[] = self::MAILTAG_DETAILS;
|
$tags[] = self::MAILTAG_DETAILS;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue