mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
14 lines
273 B
PHP
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();
|
|
}
|