Skip to content

Commit 533fa16

Browse files
committed
Update account links endpoint
1 parent 8f7e1e0 commit 533fa16

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/Http/Controllers/Api/AccountController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,8 @@ public function getProfileLinks(Request $request)
768768
$links = $profile->profileLinks()->orderBy('position')->get();
769769
$res = [
770770
'id' => (string) $profile->id,
771-
'available_slots' => LinkLimitService::getRemainingSlots($profile),
771+
'total_allowed' => (int) LinkLimitService::getMaxLinks($profile),
772+
'available_slots' => (int) LinkLimitService::getRemainingSlots($profile),
772773
'can_add' => (bool) LinkLimitService::canAddLink($profile),
773774
'links' => $links,
774775
];

0 commit comments

Comments
 (0)