mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 06:42:42 +01:00
Fix PonderQuestionCreateMailReceiver accessing non-existing PonderQuestionTransaction constants
Summary: The transaction types `TYPE_TITLE` and `TYPE_CONTENT` were removed from `PonderQuestionTransaction` in rPdff028c4907dd1959859733ea0d947f244559e7f. Thus update `PonderQuestionCreateMailReceiver` to use the corresponding modular transactions `PonderQuestionTitleTransaction` and `PonderQuestionContentTransaction` instead. Test Plan: Carefully read the code, grep the code base, use the test case in D25656#18162. Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25656
This commit is contained in:
parent
b8a03bc145
commit
8c82117878
1 changed files with 2 additions and 2 deletions
|
@ -20,11 +20,11 @@ final class PonderQuestionCreateMailReceiver
|
|||
$xactions = array();
|
||||
|
||||
$xactions[] = id(new PonderQuestionTransaction())
|
||||
->setTransactionType(PonderQuestionTransaction::TYPE_TITLE)
|
||||
->setTransactionType(PonderQuestionTitleTransaction::TRANSACTIONTYPE)
|
||||
->setNewValue($title);
|
||||
|
||||
$xactions[] = id(new PonderQuestionTransaction())
|
||||
->setTransactionType(PonderQuestionTransaction::TYPE_CONTENT)
|
||||
->setTransactionType(PonderQuestionContentTransaction::TRANSACTIONTYPE)
|
||||
->setNewValue($mail->getCleanTextBody());
|
||||
|
||||
$question = PonderQuestion::initializeNewQuestion($author);
|
||||
|
|
Loading…
Reference in a new issue