Page MenuHomePhabricator

Fix errors when mentioning others in Ponder
ClosedPublic

Authored by chad on Oct 13 2015, 4:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 12:55 AM
Unknown Object (File)
Tue, Apr 16, 2:58 AM
Unknown Object (File)
Thu, Apr 11, 6:02 AM
Unknown Object (File)
Wed, Apr 10, 3:55 AM
Unknown Object (File)
Sat, Apr 6, 2:26 AM
Unknown Object (File)
Mon, Apr 1, 2:07 PM
Unknown Object (File)
Mon, Apr 1, 1:39 PM
Unknown Object (File)
Mon, Apr 1, 8:14 AM
Subscribers

Details

Summary

Fixes T9552. We need to set a questionID and the question object (for policy) when initializing a new Answer.

Test Plan

Write an answer that mentions another user.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Fix errors when mentioning others in Ponder.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
src/applications/ponder/storage/PonderAnswer.php
38

See T9552. I need to do policy checks, which need the question attached, not sure how to attach it during 'New Answer' initialization since its a static method.

src/applications/ponder/storage/PonderAnswer.php
38

You can attach it like this, here:

   ...
   ->setQuestionID(...)
+  ->attachQuestion($question)
   ->setContent(...)
   ...
epriestley edited edge metadata.
This revision is now accepted and ready to land.Oct 13 2015, 4:08 PM
This revision was automatically updated to reflect the committed changes.