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

13 lines
295 B
PHP

<?php
/** @phpstan-var \Gazelle\User $Viewer */
declare(strict_types=1);
namespace Gazelle;
require_once __DIR__ . '/../forums/do_warn.php';
[$post, $body] = handleWarningRequest(new Manager\Comment());
$post->setField('Body', $body)
->setField('EditedUserID', $Viewer->id())->modify();