Files
ops-Gazelle/sections/userhistory/collage_subscribe.php

15 lines
274 B
PHP

<?php
/** @phpstan-var \Gazelle\User $Viewer */
declare(strict_types=1);
namespace Gazelle;
authorize();
$collage = new Manager\Collage()->findById((int)($_GET['collageid'] ?? 0));
if (is_null($collage)) {
Error404::error();
}
$collage->toggleSubscription($Viewer);