mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
dghnryjtyj (#972)
This commit is contained in:
parent
c2b6db1b8a
commit
69d0739ef1
2 changed files with 2 additions and 2 deletions
|
@ -211,7 +211,7 @@ final class Notes extends VKAPIRequestHandler
|
||||||
$items = [];
|
$items = [];
|
||||||
|
|
||||||
$note = (new NotesRepo)->getNoteById((int)$id[0], (int)$id[1]);
|
$note = (new NotesRepo)->getNoteById((int)$id[0], (int)$id[1]);
|
||||||
if($note) {
|
if($note && !$note->isDeleted()) {
|
||||||
$nodez->notes[] = $note->toVkApiStruct();
|
$nodez->notes[] = $note->toVkApiStruct();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,7 +124,7 @@ class Note extends Postable
|
||||||
$res = (object) [];
|
$res = (object) [];
|
||||||
|
|
||||||
$res->type = "note";
|
$res->type = "note";
|
||||||
$res->id = $this->getId();
|
$res->id = $this->getVirtualId();
|
||||||
$res->owner_id = $this->getOwner()->getId();
|
$res->owner_id = $this->getOwner()->getId();
|
||||||
$res->title = $this->getName();
|
$res->title = $this->getName();
|
||||||
$res->text = $this->getText();
|
$res->text = $this->getText();
|
||||||
|
|
Loading…
Reference in a new issue