This commit is contained in:
n1rwana 2022-09-06 22:11:20 +03:00
parent 3889594bcb
commit 48cce679e4
3 changed files with 2 additions and 3 deletions

View file

@ -282,7 +282,6 @@ final class WallPresenter extends OpenVKPresenter
if (OPENVK_ROOT_CONF["openvk"]["preferences"]["wall"]["logChanges"]) { if (OPENVK_ROOT_CONF["openvk"]["preferences"]["wall"]["logChanges"]) {
$changes_record->setWall_id($wall); $changes_record->setWall_id($wall);
$changes_record->setVirtual_id($editTarget); $changes_record->setVirtual_id($editTarget);
$changes_record->setOldContent($post->getText());
$changes_record->setNewContent($this->postParam("text")); $changes_record->setNewContent($this->postParam("text"));
$changes_record->setCreated(time()); $changes_record->setCreated(time());
$changes_record->save(); $changes_record->save();

View file

@ -64,7 +64,7 @@
<span id="text{$post->getPrettyId()}">{$post->getText()|noescape}</span> <span id="text{$post->getPrettyId()}">{$post->getText()|noescape}</span>
<div class="edit" id="text_edit{$post->getPrettyId()}" style="display: none;"> <div class="edit" id="text_edit{$post->getPrettyId()}" style="display: none;">
{include "../textArea.xml", route => "/wall$owner/makePost/{$post->getVirtualId()}"} {include "../textArea.xml", route => "/wall$owner/makePost/{$post->getVirtualId()}", value => $post->getText()}
</div> </div>
<div n:ifcontent class="attachments_b"> <div n:ifcontent class="attachments_b">

View file

@ -3,7 +3,7 @@
<div id="write" style="padding: 5px 0;" onfocusin="expand_wall_textarea({$textAreaId});"> <div id="write" style="padding: 5px 0;" onfocusin="expand_wall_textarea({$textAreaId});">
<form action="{$route}" method="post" enctype="multipart/form-data" style="margin:0;"> <form action="{$route}" method="post" enctype="multipart/form-data" style="margin:0;">
<textarea id="wall-post-input{$textAreaId}" placeholder="{_write}" name="text" style="width: 100%;resize: none;" class="small-textarea"></textarea> <textarea id="wall-post-input{$textAreaId}" placeholder="{_write}" name="text" style="width: 100%;resize: none;" class="small-textarea">{$value|noescape}</textarea>
<div> <div>
<!-- padding to fix <br/> bug --> <!-- padding to fix <br/> bug -->
</div> </div>