mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
Merge pull request #14340 from annando/issue-14312
Issue 14312: fix uimport path / restore POST endpoints
This commit is contained in:
commit
22dbc1e7ae
12 changed files with 61 additions and 2 deletions
|
@ -28,6 +28,12 @@ use Friendica\Module\BaseAdmin;
|
||||||
|
|
||||||
class Index extends 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
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
parent::content();
|
parent::content();
|
||||||
|
|
|
@ -30,6 +30,12 @@ use Friendica\Util\Strings;
|
||||||
|
|
||||||
class Details extends BaseAdmin
|
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
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
parent::content();
|
parent::content();
|
||||||
|
|
|
@ -29,6 +29,12 @@ use Friendica\Util\Strings;
|
||||||
|
|
||||||
class Index extends 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
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
parent::content();
|
parent::content();
|
||||||
|
|
|
@ -29,6 +29,12 @@ use Friendica\Util\JsonLD;
|
||||||
|
|
||||||
class ActivityPubConversion extends BaseModule
|
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
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
function visible_whitespace($s)
|
function visible_whitespace($s)
|
||||||
|
|
|
@ -35,6 +35,12 @@ use Friendica\Util\XML;
|
||||||
*/
|
*/
|
||||||
class Babel extends BaseModule
|
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
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
function visible_whitespace($s)
|
function visible_whitespace($s)
|
||||||
|
|
|
@ -45,6 +45,12 @@ class Source extends BaseModeration
|
||||||
$this->config = $config;
|
$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
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
parent::content();
|
parent::content();
|
||||||
|
|
|
@ -48,6 +48,12 @@ class Reports extends BaseModeration
|
||||||
$this->database = $database;
|
$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
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
parent::content();
|
parent::content();
|
||||||
|
|
|
@ -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
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
Nav::setSelected('introductions');
|
Nav::setSelected('introductions');
|
||||||
|
|
|
@ -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
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
Nav::setSelected('notifications');
|
Nav::setSelected('notifications');
|
||||||
|
|
|
@ -56,6 +56,11 @@ class Logout extends BaseModule
|
||||||
$this->session = $session;
|
$this->session = $session;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function post(array $request = [])
|
||||||
|
{
|
||||||
|
// @todo check if POST is really used here
|
||||||
|
$this->rawContent($request);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Process logout requests
|
* Process logout requests
|
||||||
|
|
|
@ -446,7 +446,7 @@ return [
|
||||||
'/filed' => [Module\Search\Filed::class, [R::GET]],
|
'/filed' => [Module\Search\Filed::class, [R::GET]],
|
||||||
'/filer[/{id:\d+}]' => [Module\Filer\SaveTag::class, [R::GET]],
|
'/filer[/{id:\d+}]' => [Module\Filer\SaveTag::class, [R::GET]],
|
||||||
'/filerm/{id:\d+}' => [Module\Filer\RemoveTag::class, [R::GET, R::POST]],
|
'/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]],
|
'/followers/{nickname}' => [Module\ActivityPub\Followers::class, [R::GET]],
|
||||||
'/following/{nickname}' => [Module\ActivityPub\Following::class, [R::GET]],
|
'/following/{nickname}' => [Module\ActivityPub\Following::class, [R::GET]],
|
||||||
'/friendica[/{format:json}]' => [Module\Friendica::class, [R::GET]],
|
'/friendica[/{format:json}]' => [Module\Friendica::class, [R::GET]],
|
||||||
|
|
|
@ -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>
|
<h2>{{$import.title}}</h2>
|
||||||
<p>{{$import.intro}}</p>
|
<p>{{$import.intro}}</p>
|
||||||
<p>{{$import.instruct}}</p>
|
<p>{{$import.instruct}}</p>
|
||||||
|
|
Loading…
Reference in a new issue