mirror of
https://github.com/friendica/friendica
synced 2024-12-31 23:22:19 +00:00
Use "post" instead of "rawContent"
This commit is contained in:
parent
344c5fa595
commit
28d67bfef0
12 changed files with 12 additions and 12 deletions
|
@ -47,7 +47,7 @@ class Destroy extends BaseApi
|
||||||
|
|
||||||
$this->dba = $dba;
|
$this->dba = $dba;
|
||||||
}
|
}
|
||||||
protected function rawContent(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
$this->checkAllowedScope(BaseApi::SCOPE_WRITE);
|
$this->checkAllowedScope(BaseApi::SCOPE_WRITE);
|
||||||
$uid = BaseApi::getCurrentUserID();
|
$uid = BaseApi::getCurrentUserID();
|
||||||
|
|
|
@ -54,7 +54,7 @@ class NewDM extends BaseApi
|
||||||
$this->directMessage = $directMessage;
|
$this->directMessage = $directMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function rawContent(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
$this->checkAllowedScope(BaseApi::SCOPE_WRITE);
|
$this->checkAllowedScope(BaseApi::SCOPE_WRITE);
|
||||||
$uid = BaseApi::getCurrentUserID();
|
$uid = BaseApi::getCurrentUserID();
|
||||||
|
|
|
@ -54,7 +54,7 @@ class Create extends BaseApi
|
||||||
$this->friendicaCircle = $friendicaCircle;
|
$this->friendicaCircle = $friendicaCircle;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function rawContent(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
$this->checkAllowedScope(BaseApi::SCOPE_WRITE);
|
$this->checkAllowedScope(BaseApi::SCOPE_WRITE);
|
||||||
$uid = BaseApi::getCurrentUserID();
|
$uid = BaseApi::getCurrentUserID();
|
||||||
|
|
|
@ -54,7 +54,7 @@ class Destroy extends BaseApi
|
||||||
$this->friendicaCircle = $friendicaCircle;
|
$this->friendicaCircle = $friendicaCircle;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function rawContent(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
$this->checkAllowedScope(BaseApi::SCOPE_WRITE);
|
$this->checkAllowedScope(BaseApi::SCOPE_WRITE);
|
||||||
$uid = BaseApi::getCurrentUserID();
|
$uid = BaseApi::getCurrentUserID();
|
||||||
|
|
|
@ -54,7 +54,7 @@ class Update extends BaseApi
|
||||||
$this->friendicaCircle = $friendicaCircle;
|
$this->friendicaCircle = $friendicaCircle;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function rawContent(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
$this->checkAllowedScope(BaseApi::SCOPE_WRITE);
|
$this->checkAllowedScope(BaseApi::SCOPE_WRITE);
|
||||||
$uid = BaseApi::getCurrentUserID();
|
$uid = BaseApi::getCurrentUserID();
|
||||||
|
|
|
@ -36,7 +36,7 @@ use Friendica\Protocol\Diaspora;
|
||||||
*/
|
*/
|
||||||
class Activity extends BaseModule
|
class Activity extends BaseModule
|
||||||
{
|
{
|
||||||
protected function rawContent(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
if (!DI::userSession()->isAuthenticated()) {
|
if (!DI::userSession()->isAuthenticated()) {
|
||||||
throw new HTTPException\ForbiddenException();
|
throw new HTTPException\ForbiddenException();
|
||||||
|
|
|
@ -33,7 +33,7 @@ use Friendica\Network\HTTPException;
|
||||||
*/
|
*/
|
||||||
class Follow extends BaseModule
|
class Follow extends BaseModule
|
||||||
{
|
{
|
||||||
protected function rawContent(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
$l10n = DI::l10n();
|
$l10n = DI::l10n();
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ use Friendica\Network\HTTPException;
|
||||||
*/
|
*/
|
||||||
class Ignore extends BaseModule
|
class Ignore extends BaseModule
|
||||||
{
|
{
|
||||||
protected function rawContent(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
$l10n = DI::l10n();
|
$l10n = DI::l10n();
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ use Friendica\Network\HTTPException;
|
||||||
*/
|
*/
|
||||||
class Pin extends BaseModule
|
class Pin extends BaseModule
|
||||||
{
|
{
|
||||||
protected function rawContent(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
$l10n = DI::l10n();
|
$l10n = DI::l10n();
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ use Friendica\Network\HTTPException;
|
||||||
*/
|
*/
|
||||||
class Star extends BaseModule
|
class Star extends BaseModule
|
||||||
{
|
{
|
||||||
protected function rawContent(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
$l10n = DI::l10n();
|
$l10n = DI::l10n();
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ class Tags extends BaseModule
|
||||||
$this->database = $database;
|
$this->database = $database;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function rawContent(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
$tags = $request['s'] ?? '';
|
$tags = $request['s'] ?? '';
|
||||||
$perPage = intval($request['n'] ?? self::DEFAULT_ITEMS_PER_PAGE);
|
$perPage = intval($request['n'] ?? self::DEFAULT_ITEMS_PER_PAGE);
|
||||||
|
|
|
@ -47,7 +47,7 @@ $apiRoutes = [
|
||||||
'/account' => [
|
'/account' => [
|
||||||
'/verify_credentials[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\VerifyCredentials::class, [R::GET ]],
|
'/verify_credentials[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\VerifyCredentials::class, [R::GET ]],
|
||||||
'/rate_limit_status[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\RateLimitStatus::class, [R::GET ]],
|
'/rate_limit_status[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\RateLimitStatus::class, [R::GET ]],
|
||||||
'/update_profile[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\UpdateProfile ::class, [ R::POST]],
|
'/update_profile[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\UpdateProfile::class, [ R::POST]],
|
||||||
'/update_profile_image[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\UpdateProfileImage::class, [ R::POST]],
|
'/update_profile_image[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\UpdateProfileImage::class, [ R::POST]],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue