mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
Fix routing bug in absolute photo URLs
This commit is contained in:
parent
4d63ad4681
commit
674e613e30
1 changed files with 2 additions and 2 deletions
|
@ -159,9 +159,9 @@ final class PhotosPresenter extends OpenVKPresenter
|
|||
$this->template->comments = iterator_to_array($photo->getComments($this->template->cPage));
|
||||
}
|
||||
|
||||
function renderAbsolutePhoto(string $id): void
|
||||
function renderAbsolutePhoto($id): void
|
||||
{
|
||||
$id = (int) base_convert($id, 32, 10);
|
||||
$id = (int) base_convert((string) $id, 32, 10);
|
||||
$photo = $this->photos->get($id);
|
||||
if(!$photo || $photo->isDeleted())
|
||||
$this->notFound();
|
||||
|
|
Loading…
Reference in a new issue