Skip to content

Commit

Permalink
Merge pull request #38475 from nextcloud/backport/38454/stable27
Browse files Browse the repository at this point in the history
[stable27] fix(carddav): Make system contact phone number RFC compliant
  • Loading branch information
blizzz authored Jul 11, 2023
2 parents bb66a5e + e44cd0f commit 8adad15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/CardDAV/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function createCardFromUser(IUser $user): ?VCard {
$vCard->add(new Text($vCard, 'URL', $property->getValue(), ['X-NC-SCOPE' => $scope]));
break;
case IAccountManager::PROPERTY_PHONE:
$vCard->add(new Text($vCard, 'TEL', $property->getValue(), ['TYPE' => 'OTHER', 'X-NC-SCOPE' => $scope]));
$vCard->add(new Text($vCard, 'TEL', $property->getValue(), ['TYPE' => 'VOICE', 'X-NC-SCOPE' => $scope]));
break;
case IAccountManager::PROPERTY_ADDRESS:
// structured prop: https://www.rfc-editor.org/rfc/rfc6350.html#section-6.3.1
Expand Down

0 comments on commit 8adad15

Please sign in to comment.