Make BaseModule methods dynamic
This commit is contained in:
@@ -40,7 +40,7 @@ use Friendica\Module\BaseApi;
|
||||
*/
|
||||
class Activity extends BaseApi
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
@@ -30,7 +30,7 @@ use Friendica\Module\BaseApi;
|
||||
*/
|
||||
class Setseen extends BaseApi
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
@@ -33,7 +33,7 @@ use Friendica\Module\BaseApi;
|
||||
*/
|
||||
class Index extends BaseApi
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_READ);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
@@ -31,17 +31,17 @@ use Friendica\Module\BaseApi;
|
||||
*/
|
||||
class Index extends BaseApi
|
||||
{
|
||||
public static function post()
|
||||
public function post()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
}
|
||||
|
||||
public static function delete()
|
||||
public function delete()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
}
|
||||
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
echo api_call(DI::app());
|
||||
exit();
|
||||
|
||||
@@ -31,7 +31,7 @@ use Friendica\Object\Api\Friendica\Notification as ApiNotification;
|
||||
*/
|
||||
class Notification extends BaseApi
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_READ);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
@@ -33,7 +33,7 @@ use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
*/
|
||||
class Delete extends BaseApi
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
@@ -34,7 +34,7 @@ use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
*/
|
||||
class Delete extends BaseApi
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
@@ -32,7 +32,7 @@ use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
*/
|
||||
class Update extends BaseApi
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
@@ -34,7 +34,7 @@ use Friendica\Network\HTTPException;
|
||||
*/
|
||||
class Show extends BaseApi
|
||||
{
|
||||
public static function rawContent()
|
||||
public function rawContent()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_READ);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
Reference in New Issue
Block a user