Make BaseModule methods dynamic
This commit is contained in:
@@ -31,7 +31,7 @@ use Friendica\Protocol\ActivityPub;
|
||||
*/
|
||||
class Followers extends BaseModule
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
if (empty(static::$parameters['nickname'])) {
|
||||
throw new \Friendica\Network\HTTPException\NotFoundException();
|
||||
|
||||
@@ -31,7 +31,7 @@ use Friendica\Protocol\ActivityPub;
|
||||
*/
|
||||
class Following extends BaseModule
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
if (empty(static::$parameters['nickname'])) {
|
||||
throw new \Friendica\Network\HTTPException\NotFoundException();
|
||||
|
||||
@@ -35,7 +35,7 @@ use Friendica\Util\Network;
|
||||
*/
|
||||
class Inbox extends BaseModule
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
$postdata = Network::postdata();
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ use Friendica\Util\Strings;
|
||||
*/
|
||||
class Objects extends BaseModule
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
if (empty(static::$parameters['guid'])) {
|
||||
throw new HTTPException\BadRequestException();
|
||||
|
||||
@@ -31,7 +31,7 @@ use Friendica\Util\HTTPSignature;
|
||||
*/
|
||||
class Outbox extends BaseModule
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
if (empty(static::$parameters['nickname'])) {
|
||||
throw new \Friendica\Network\HTTPException\NotFoundException();
|
||||
|
||||
Reference in New Issue
Block a user