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

added notificationCount to connectprofile

parent dd1da501
......@@ -37,6 +37,7 @@ class APIConnectUserController extends AbstractController
if($connection) {
$data = $connection->getUser()->getJSON();
$data['notificationsCount'] = count($connection->getUser()->getUserNotifications());
$response = new JsonResponse(['version' => $this->getParameter('api_version'), 'status' => 200, 'data' => $data]);
return $response;
......
......@@ -42,7 +42,8 @@
"isVerified":true,
"isPatreon":true,
"pronouns": "they/them",
"avatar":"https:\/\/spinsha.re\/uploads\/avatar\/5f4147b117c7b.png"
"avatar":"https:\/\/spinsha.re\/uploads\/avatar\/5f4147b117c7b.png",
"notificationsCount": 4
}
}
</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