mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-09-13 01:45:16 -04:00
14 lines
279 B
PHP
14 lines
279 B
PHP
<?php
|
|
/** @phpstan-var \Gazelle\User $Viewer */
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Gazelle;
|
|
|
|
require __DIR__ . '/do_warn.php';
|
|
[$post, $body] = handleWarningRequest(new Manager\ForumPost());
|
|
$post->edit($Viewer, $body);
|
|
if ($post->isPinned()) {
|
|
$post->thread()->flush();
|
|
}
|