Fixes T9552. We need to set a questionID and the question object (for policy) when initializing a new Answer.
Details
Details
- Reviewers
epriestley - Maniphest Tasks
- T9552: Users cannot answer questions on Ponder
- Commits
- Restricted Diffusion Commit
rP6ff1354ac1ff: Fix errors when mentioning others in Ponder
Write an answer that mentions another user.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Branch
- ponder-question
- Lint
Lint Errors Severity Location Code Message Error src/applications/ponder/storage/PonderAnswer.php:37 XHP13 Use of $this in Static Context - Unit
Tests Passed - Build Status
Buildable 8251 Build 9443: Run Core Tests Build 9442: arc lint + arc unit
Event Timeline
src/applications/ponder/storage/PonderAnswer.php | ||
---|---|---|
40 | You can attach it like this, here: ...
->setQuestionID(...)
+ ->attachQuestion($question)
->setContent(...)
... |