feat: video not unlisted af. editing

This commit is contained in:
mrilyew 2025-05-24 23:51:28 +03:00 committed by Alexander Minkin
parent b63d2c24bd
commit e7faa45050

View file

@ -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"));