dghnryjtyj

This commit is contained in:
lalka2016 2023-08-20 13:48:43 +03:00
parent c2b6db1b8a
commit c0b3cab10b
2 changed files with 2 additions and 2 deletions

View file

@ -211,7 +211,7 @@ final class Notes extends VKAPIRequestHandler
$items = [];
$note = (new NotesRepo)->getNoteById((int)$id[0], (int)$id[1]);
if($note) {
if($note && !$note->isDeleted()) {
$nodez->notes[] = $note->toVkApiStruct();
}
}

View file

@ -124,7 +124,7 @@ class Note extends Postable
$res = (object) [];
$res->type = "note";
$res->id = $this->getId();
$res->id = $this->getVirtualId();
$res->owner_id = $this->getOwner()->getId();
$res->title = $this->getName();
$res->text = $this->getText();