mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Transform ApiResponse::error() into dynamic method
This commit is contained in:
parent
ea0f41ecf0
commit
ebf56674f1
3 changed files with 5 additions and 5 deletions
|
@ -60,7 +60,7 @@ class Activity extends BaseApi
|
|||
}
|
||||
DI::apiResponse()->exit('ok', ['ok' => $ok], $parameters['extension'] ?? null);
|
||||
} else {
|
||||
ApiResponse::error(500, 'Error adding activity', '', $parameters['extension'] ?? null);
|
||||
DI::apiResponse()->error(500, 'Error adding activity', '', $parameters['extension'] ?? null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue