mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-12 11:44:28 +02:00
Rename ApipResponse->exit* methods to better show their meaning
This commit is contained in:
parent
960171c4e0
commit
642baa1f2a
68 changed files with 88 additions and 88 deletions
|
@ -87,6 +87,6 @@ class Destroy extends ContactEndpoint
|
|||
throw new HTTPException\InternalServerErrorException('Unable to unfollow this contact, please contact your administrator');
|
||||
}
|
||||
|
||||
$this->response->exit('friendships', ['user' => $user], $this->parameters['extension'] ?? null);
|
||||
$this->response->addFormattedContent('friendships', ['user' => $user], $this->parameters['extension'] ?? null);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,6 +82,6 @@ class Incoming extends ContactEndpoint
|
|||
|
||||
$this->response->setHeader(self::getLinkHeader());
|
||||
|
||||
$this->response->exit('incoming', ['incoming' => $return]);
|
||||
$this->response->addFormattedContent('incoming', ['incoming' => $return]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -112,6 +112,6 @@ class Show extends ContactEndpoint
|
|||
]
|
||||
];
|
||||
|
||||
DI::apiResponse()->exit('relationship', ['relationship' => $relationship], $this->parameters['extension'] ?? null);
|
||||
DI::apiResponse()->addFormattedContent('relationship', ['relationship' => $relationship], $this->parameters['extension'] ?? null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue