Files
ops-Gazelle/sections/forums/warn_handle.php
2025-05-23 14:41:16 +02:00

14 lines
273 B
PHP

<?php
/** @phpstan-var \Gazelle\User $Viewer */
declare(strict_types=1);
namespace Gazelle;
require_once 'do_warn.php';
[$post, $body] = handleWarningRequest(new Manager\ForumPost());
$post->edit($Viewer, $body);
if ($post->isPinned()) {
$post->thread()->flush();
}