forked from GNUsocial/gnu-social
POSTING remove REPLY route
This commit is contained in:
parent
7e7bfd1958
commit
a7b7d487d7
@ -31,7 +31,6 @@ use App\Util\Common;
|
||||
use App\Util\Exceptiion\InvalidFormException;
|
||||
use App\Util\Exception\RedirectException;
|
||||
use Component\Media\Media;
|
||||
use Component\Posting\Controller as C;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\FileType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
@ -39,11 +38,6 @@ use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
||||
|
||||
class Posting extends Module
|
||||
{
|
||||
public function onAddRoute($r)
|
||||
{
|
||||
$r->connect('note_reply', '/note/reply/{reply_to<\d*>}', [C\Post::class, 'reply']);
|
||||
}
|
||||
|
||||
public function onStartTwigPopulateVars(array &$vars)
|
||||
{
|
||||
if (($user = Common::user()) == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user