Replace 'REQUEST_METHOD' with App\Arguments::getMethod()

This commit is contained in:
Philipp Holzer 2022-01-03 19:30:27 +01:00
commit 543e4be0a6
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
4 changed files with 6 additions and 8 deletions

View file

@ -43,7 +43,7 @@ function pubsubhubbub_init(App $a) {
// [hub_secret] => af11...
// [hub_topic] => http://friendica.local/dfrn_poll/sazius
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (DI::args()->getMethod() === App\Router::POST) {
$hub_mode = $_POST['hub_mode'] ?? '';
$hub_callback = $_POST['hub_callback'] ?? '';
$hub_verify_token = $_POST['hub_verify_token'] ?? '';