kopia lustrzana https://github.com/nextcloud/social
fix: coding standards
Prevent CI failures like https://github.com/nextcloud/social/runs/7711238464?check_suite_focus=true Signed-off-by: Max <max@nextcloud.com>pull/1454/head
rodzic
bd17e38756
commit
8405a1193a
|
@ -112,9 +112,13 @@ class LocalController extends Controller {
|
|||
* @NoAdminRequired
|
||||
*/
|
||||
public function uploadAttachement(): DataResponse {
|
||||
try {
|
||||
throw new \BadMethodCallException('uploadAttachment is not implemented yet');
|
||||
} catch (Exception $e) {
|
||||
return $this->fail($e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create a new post.
|
||||
*
|
||||
|
|
|
@ -8,6 +8,7 @@ declare(strict_types=1);
|
|||
namespace OCA\Social\Controller;
|
||||
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\DataResponse;
|
||||
use OCP\Files\IMimeTypeDetector;
|
||||
|
||||
class MediaApiController extends Controller {
|
||||
|
@ -32,7 +33,7 @@ class MediaApiController extends Controller {
|
|||
*/
|
||||
public function uploadMedia(): DataResponse {
|
||||
// TODO
|
||||
return DataResponse([
|
||||
return new DataResponse([
|
||||
'id' => 1,
|
||||
'url' => '',
|
||||
'preview_url' => '',
|
||||
|
|
Ładowanie…
Reference in New Issue