dghnryjtyj (#972)

This commit is contained in:
lalka2018 2023-08-20 13:55:41 +03:00 committed by GitHub
parent c2b6db1b8a
commit 69d0739ef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();