Change API attribute for hiding/restoring posts

This commit is contained in:
Toby Zerner 2015-02-10 17:51:16 +10:30
parent f56da376da
commit 227f19ddf6
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);
}