diff options
author | Johannes Merkel <mail@johannesgge.de> | 2023-06-16 14:29:26 +0200 |
---|---|---|
committer | Johannes <74607597+JohannesGGE@users.noreply.github.com> | 2023-06-20 16:18:09 +0200 |
commit | 3cb89688087b87ed5dea1d58dca92e7b873f8258 (patch) | |
tree | 57a01c324925e35332c9508f57a15951d125952a | |
parent | 14ac281acf143606c54e59e3641c9d0d898e5f95 (diff) | |
download | nextcloud-server-3cb89688087b87ed5dea1d58dca92e7b873f8258.tar.gz nextcloud-server-3cb89688087b87ed5dea1d58dca92e7b873f8258.zip |
fix(sab): put location in proper address field
Signed-off-by: Johannes Merkel <mail@johannesgge.de>
-rw-r--r-- | apps/dav/lib/CardDAV/Converter.php | 14 | ||||
-rw-r--r-- | apps/settings/src/components/PersonalInfo/LocationSection.vue | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/apps/dav/lib/CardDAV/Converter.php b/apps/dav/lib/CardDAV/Converter.php index c8add1b96a6..b3d8b094d69 100644 --- a/apps/dav/lib/CardDAV/Converter.php +++ b/apps/dav/lib/CardDAV/Converter.php @@ -92,7 +92,19 @@ class Converter { $vCard->add(new Text($vCard, 'TEL', $property->getValue(), ['TYPE' => 'VOICE', 'X-NC-SCOPE' => $scope])); break; case IAccountManager::PROPERTY_ADDRESS: - $vCard->add(new Text($vCard, 'ADR', $property->getValue(), ['TYPE' => 'OTHER', 'X-NC-SCOPE' => $scope])); + // structured prop: https://www.rfc-editor.org/rfc/rfc6350.html#section-6.3.1 + // post office box;extended address;street address;locality;region;postal code;country + $vCard->add( + new Text( + $vCard, + 'ADR', + [ '', '', '', $property->getValue(), '', '', '' ], + [ + 'TYPE' => 'OTHER', + 'X-NC-SCOPE' => $scope, + ] + ) + ); break; case IAccountManager::PROPERTY_TWITTER: $vCard->add(new Text($vCard, 'X-SOCIALPROFILE', $property->getValue(), ['TYPE' => 'TWITTER', 'X-NC-SCOPE' => $scope])); diff --git a/apps/settings/src/components/PersonalInfo/LocationSection.vue b/apps/settings/src/components/PersonalInfo/LocationSection.vue index ceef7c432cd..57811ddf3b0 100644 --- a/apps/settings/src/components/PersonalInfo/LocationSection.vue +++ b/apps/settings/src/components/PersonalInfo/LocationSection.vue @@ -23,7 +23,7 @@ <template> <AccountPropertySection v-bind.sync="location" autocomplete="address-level1" - :placeholder="t('settings', 'Your location')" /> + :placeholder="t('settings', 'Your city')" /> </template> <script> |