mirror of
https://github.com/openvk/openvk
synced 2025-07-07 00:09:48 +03:00
d
This commit is contained in:
parent
b198a98506
commit
3b50c6d4f8
4 changed files with 5 additions and 4 deletions
|
@ -81,7 +81,7 @@ class Wall implements Handler
|
|||
$arr = [
|
||||
"count" => sizeof($myNotes),
|
||||
"closed" => $this->user->getPrivacySetting("notes.read"),
|
||||
"items" => []
|
||||
"items" => [],
|
||||
];
|
||||
|
||||
foreach($myNotes as $note) {
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -2540,6 +2540,7 @@ a.poll-retract-vote {
|
|||
|
||||
.attachment_note_text {
|
||||
color: #605F63;
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.attachment_note {
|
||||
|
|
|
@ -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 += `
|
||||
<div class="ntSelect" onclick="addNote(${id}, ${note.id}, '${escapeHtml(note.name)}')">
|
||||
<div class="ntSelect" onclick="addNote(${id}, ${note.id}, '${note.name}')">
|
||||
<span>${escapeHtml(note.name)}</span>
|
||||
</div>
|
||||
`
|
||||
|
|
Loading…
Reference in a new issue