Commit 3d2329af authored by Laura Heimann's avatar Laura Heimann

added notificationCount to connectprofile

parent dd1da501
...@@ -37,6 +37,7 @@ class APIConnectUserController extends AbstractController ...@@ -37,6 +37,7 @@ class APIConnectUserController extends AbstractController
if($connection) { if($connection) {
$data = $connection->getUser()->getJSON(); $data = $connection->getUser()->getJSON();
$data['notificationsCount'] = count($connection->getUser()->getUserNotifications());
$response = new JsonResponse(['version' => $this->getParameter('api_version'), 'status' => 200, 'data' => $data]); $response = new JsonResponse(['version' => $this->getParameter('api_version'), 'status' => 200, 'data' => $data]);
return $response; return $response;
......
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
"isVerified":true, "isVerified":true,
"isPatreon":true, "isPatreon":true,
"pronouns": "they/them", "pronouns": "they/them",
"avatar":"https:\/\/spinsha.re\/uploads\/avatar\/5f4147b117c7b.png" "avatar":"https:\/\/spinsha.re\/uploads\/avatar\/5f4147b117c7b.png",
"notificationsCount": 4
} }
} }
</pre> </pre>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment