mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(sab): put location in proper address field
Signed-off-by: Johannes Merkel <mail@johannesgge.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
d2be510ff1
commit
db8da6a571
4 changed files with 17 additions and 5 deletions
|
|
@ -92,7 +92,19 @@ class Converter {
|
|||
$vCard->add(new Text($vCard, 'TEL', $property->getValue(), ['TYPE' => 'OTHER', '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]));
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
4
dist/settings-vue-settings-personal-info.js
vendored
4
dist/settings-vue-settings-personal-info.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue