Admin: Add ability to disable display of group posts in the global feed

This commit is contained in:
Maxim Leshchenko 2022-01-15 19:41:39 +02:00
parent dd236c0034
commit 5e80477ae2
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE
2 changed files with 7 additions and 0 deletions

View file

@ -109,6 +109,7 @@ final class AdminPresenter extends OpenVKPresenter
$club->setAbout($this->postParam("about")); $club->setAbout($this->postParam("about"));
$club->setShortCode($this->postParam("shortcode")); $club->setShortCode($this->postParam("shortcode"));
$club->setVerified(empty($this->postParam("verify") ? 0 : 1)); $club->setVerified(empty($this->postParam("verify") ? 0 : 1));
$club->setHide_From_Global_Feed(empty($this->postParam("hide_from_global_feed") ? 0 : 1));
$club->save(); $club->save();
break; break;
case "ban": case "ban":

View file

@ -79,6 +79,12 @@
Верификация Верификация
</label> </label>
</div> </div>
<div class="group">
<input class="toggle-large" type="checkbox" id="hide_from_global_feed" name="hide_from_global_feed" value="1" {if $club->isHideFromGlobalFeedEnabled()} checked {/if} />
<label for="hide_from_global_feed">
Не отображать записи в глобальной ленте
</label>
</div>
<hr/> <hr/>
<div class="buttons-container"> <div class="buttons-container">
<div class="buttons"> <div class="buttons">