$uid = self::getCurrentUserID();
if (empty($this->parameters['id'])) {
- $this->logErrorAndJsonExit(422, $this->errorFactory->UnprocessableEntity());
+ $this->logAndJsonError(422, $this->errorFactory->UnprocessableEntity());
}
$id = $this->parameters['id'];
if (!Post::exists(['uri-id' => $id, 'uid' => [0, $uid]])) {
- $this->logErrorAndJsonExit(404, $this->errorFactory->RecordNotFound());
+ $this->logAndJsonError(404, $this->errorFactory->RecordNotFound());
}
$activities = Post::selectPosts(['author-id'], ['thr-parent-id' => $id, 'gravity' => Item::GRAVITY_ACTIVITY, 'verb' => Activity::DISLIKE, 'deleted' => false]);