mirror of
https://github.com/openvk/openvk
synced 2025-07-04 14:59:54 +03:00
feat: video not unlisted af. editing
This commit is contained in:
parent
1943913713
commit
e72e310f7f
1 changed files with 1 additions and 0 deletions
|
@ -133,6 +133,7 @@ final class VideosPresenter extends OpenVKPresenter
|
||||||
if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
||||||
$video->setName(empty($this->postParam("name")) ? null : $this->postParam("name"));
|
$video->setName(empty($this->postParam("name")) ? null : $this->postParam("name"));
|
||||||
$video->setDescription(empty($this->postParam("desc")) ? null : $this->postParam("desc"));
|
$video->setDescription(empty($this->postParam("desc")) ? null : $this->postParam("desc"));
|
||||||
|
$video->setUnlisted(false);
|
||||||
$video->save();
|
$video->save();
|
||||||
|
|
||||||
$this->flash("succ", tr("changes_saved"), tr("changes_saved_video_comment"));
|
$this->flash("succ", tr("changes_saved"), tr("changes_saved_video_comment"));
|
||||||
|
|
Loading…
Reference in a new issue