Add ability to hide answers in Ponder

Summary: Ref T9173, adds basic hide support for answers. Answer authors and Moderators can hide answers, unhide them.

Test Plan: Hide answer, log into other account, see hidden message. Mark as visible, see answer again.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T9173

Differential Revision: https://secure.phabricator.com/D13894
This commit is contained in:
Chad Little
2015-08-14 09:25:02 -07:00
parent 3b987a93ce
commit 603c91e08a
10 changed files with 132 additions and 4 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE {$NAMESPACE}_ponder.ponder_answer
ADD status VARCHAR(32) NOT NULL COLLATE {$COLLATE_TEXT};

View File

@@ -0,0 +1,2 @@
UPDATE {$NAMESPACE}_ponder.ponder_answer
SET status = 'visible' WHERE status = '';