Issue 14312: fix uimport path / restore POST endpoints

This commit is contained in:
Michael 2024-08-03 12:20:56 +00:00
parent 26f8392754
commit 1a6e381206
12 changed files with 61 additions and 2 deletions

View file

@ -28,6 +28,12 @@ use Friendica\Module\BaseAdmin;
class Index extends BaseAdmin
{
protected function post(array $request = [])
{
// @todo check if POST is really used here
$this->content($request);
}
protected function content(array $request = []): string
{
parent::content();

View file

@ -30,6 +30,12 @@ use Friendica\Util\Strings;
class Details extends BaseAdmin
{
protected function post(array $request = [])
{
// @todo check if POST is really used here
$this->content($request);
}
protected function content(array $request = []): string
{
parent::content();

View file

@ -29,6 +29,12 @@ use Friendica\Util\Strings;
class Index extends BaseAdmin
{
protected function post(array $request = [])
{
// @todo check if POST is really used here
$this->content($request);
}
protected function content(array $request = []): string
{
parent::content();

View file

@ -29,6 +29,12 @@ use Friendica\Util\JsonLD;
class ActivityPubConversion extends BaseModule
{
protected function post(array $request = [])
{
// @todo check if POST is really used here
$this->content($request);
}
protected function content(array $request = []): string
{
function visible_whitespace($s)

View file

@ -35,6 +35,12 @@ use Friendica\Util\XML;
*/
class Babel extends BaseModule
{
protected function post(array $request = [])
{
// @todo check if POST is really used here
$this->content($request);
}
protected function content(array $request = []): string
{
function visible_whitespace($s)

View file

@ -45,6 +45,12 @@ class Source extends BaseModeration
$this->config = $config;
}
protected function post(array $request = [])
{
// @todo check if POST is really used here
$this->content($request);
}
protected function content(array $request = []): string
{
parent::content();

View file

@ -48,6 +48,12 @@ class Reports extends BaseModeration
$this->database = $database;
}
protected function post(array $request = [])
{
// @todo check if POST is really used here
$this->content($request);
}
protected function content(array $request = []): string
{
parent::content();

View file

@ -77,6 +77,12 @@ class Introductions extends BaseNotifications
];
}
protected function post(array $request = [])
{
// @todo check if POST is really used here
$this->content($request);
}
protected function content(array $request = []): string
{
Nav::setSelected('introductions');

View file

@ -96,6 +96,12 @@ class Notifications extends BaseNotifications
];
}
protected function post(array $request = [])
{
// @todo check if POST is really used here
$this->content($request);
}
protected function content(array $request = []): string
{
Nav::setSelected('notifications');

View file

@ -56,6 +56,11 @@ class Logout extends BaseModule
$this->session = $session;
}
protected function post(array $request = [])
{
// @todo check if POST is really used here
$this->rawContent($request);
}
/**
* Process logout requests

View file

@ -446,7 +446,7 @@ return [
'/filed' => [Module\Search\Filed::class, [R::GET]],
'/filer[/{id:\d+}]' => [Module\Filer\SaveTag::class, [R::GET]],
'/filerm/{id:\d+}' => [Module\Filer\RemoveTag::class, [R::GET, R::POST]],
'/follow_confirm' => [Module\FollowConfirm::class, [R::GET, R::POST]],
'/follow_confirm' => [Module\FollowConfirm::class, [R::POST]],
'/followers/{nickname}' => [Module\ActivityPub\Followers::class, [R::GET]],
'/following/{nickname}' => [Module\ActivityPub\Following::class, [R::GET]],
'/friendica[/{format:json}]' => [Module\Friendica::class, [R::GET]],

View file

@ -1,4 +1,4 @@
<form action="uimport" method="post" id="uimport-form" enctype="multipart/form-data">
<form action="user/import" method="post" id="uimport-form" enctype="multipart/form-data">
<h2>{{$import.title}}</h2>
<p>{{$import.intro}}</p>
<p>{{$import.instruct}}</p>