Make wall posts vidible to outside world

This commit is contained in:
Celestora 2022-04-18 21:04:20 +03:00
parent ae3850b75e
commit be6a6610b1

View file

@ -303,8 +303,6 @@ final class WallPresenter extends OpenVKPresenter
function renderPost(int $wall, int $post_id): void function renderPost(int $wall, int $post_id): void
{ {
$this->assertUserLoggedIn();
$post = $this->posts->getPostById($wall, $post_id); $post = $this->posts->getPostById($wall, $post_id);
if(!$post || $post->isDeleted()) if(!$post || $post->isDeleted())
$this->notFound(); $this->notFound();