diff --git a/Web/Presenters/WallPresenter.php b/Web/Presenters/WallPresenter.php index 0dd6b66d..5bdac066 100644 --- a/Web/Presenters/WallPresenter.php +++ b/Web/Presenters/WallPresenter.php @@ -255,7 +255,7 @@ final class WallPresenter extends OpenVKPresenter $album = NULL; if(!$anon && $wall > 0 && $wall === $this->user->id) $album = (new Albums)->getUserWallAlbum($wallOwner); - + $photo = Photo::fastMake($this->user->id, $this->postParam("text"), $_FILES["_pic_attachment"], $album, $anon); } @@ -284,7 +284,7 @@ final class WallPresenter extends OpenVKPresenter } catch (\LengthException $ex) { $this->flashFail("err", tr("failed_to_publish_post"), tr("post_is_too_big")); } - + if(!is_null($photo)) $post->attach($photo); diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index d9dba115..bee1bb1f 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -112,7 +112,7 @@ function setupWallPostInputHandlers(id) { var newHeight = textArea.scrollHeight; textArea.style.height = newHeight + boost + "px"; return; - + // revert to original size if it is larger (possibly changed by user) // textArea.style.height = (newHeight > originalHeight ? (newHeight + boost) : originalHeight) + "px"; });