diff --git a/ServiceAPI/Wall.php b/ServiceAPI/Wall.php index a3016be7..16358e93 100644 --- a/ServiceAPI/Wall.php +++ b/ServiceAPI/Wall.php @@ -81,7 +81,7 @@ class Wall implements Handler $arr = [ "count" => sizeof($myNotes), "closed" => $this->user->getPrivacySetting("notes.read"), - "items" => [] + "items" => [], ]; foreach($myNotes as $note) { diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index f5944639..83231b46 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -477,7 +477,7 @@ final class Wall extends VKAPIRequestHandler } elseif($attachmentType == "note") { $attacc = (new NotesRepo)->getNoteById($attachmentOwner, $attachmentId); if(!$attacc || $attacc->isDeleted()) - $this->fail(100, "Note does not exists"); + $this->fail(100, "Note does not exist"); if($attacc->getOwner()->getId() != $this->getUser()->getId()) $this->fail(43, "You do not have access to this note"); diff --git a/Web/static/css/main.css b/Web/static/css/main.css index 74335626..989156e2 100644 --- a/Web/static/css/main.css +++ b/Web/static/css/main.css @@ -2540,6 +2540,7 @@ a.poll-retract-vote { .attachment_note_text { color: #605F63; + margin-left: 2px; } .attachment_note { diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index def8b42a..64038052 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -196,7 +196,7 @@ function addNote(textareaId, id, name) let nortd = document.querySelector("#post-buttons"+textareaId+" .post-has-note"); nortd.style.display = "block" - nortd.innerHTML = `${tr("note")} ${name}` + nortd.innerHTML = `${tr("note")} ${escapeHtml(name)}` u("body").removeClass("dimmed"); u(".ovk-diag-cont").remove(); @@ -220,7 +220,7 @@ async function attachNote(id) for(const note of notes.items) { body += ` -