Skip to content

Commit

Permalink
fix: cannot create warnings on profiles (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
luceos committed Sep 5, 2023
1 parent f392ccc commit 73a5a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Controller/CreateWarningController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function data(ServerRequestInterface $request, Document $document)
$actor->assertCan('user.manageWarnings');

$requestData = $request->getParsedBody()['data']['attributes'];
$requestRelationships = $request->getParsedBody()['data']['relationships'];
$requestRelationships = $request->getParsedBody()['data']['relationships'] ?? [];

$publicComment = $requestData['public_comment'];

Expand Down

0 comments on commit 73a5a87

Please sign in to comment.