Change API attribute for hiding/restoring posts

This commit is contained in:
Toby Zerner 2015-02-10 17:51:16 +10:30
parent 85097660f0
commit a820f3c4f4
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ class EditPostCommand
public $content;
public $hidden;
public $isHidden;
public function __construct($postId, $user)
{

View File

@ -28,9 +28,9 @@ class EditPostCommandHandler implements CommandHandler
$post->revise($command->content, $user);
}
if ($command->hidden === true) {
if ($command->isHidden === true) {
$post->hide($user);
} elseif ($command->hidden === false) {
} elseif ($command->isHidden === false) {
$post->restore($user);
}