]> source.dussan.org Git - nextcloud-server.git/commitdiff
enh(contacts): write profile prop and backend prop to system addressbook 38025/head
authorJohannes Merkel <mail@johannesgge.de>
Tue, 2 May 2023 14:31:11 +0000 (16:31 +0200)
committerJohannes Merkel <mail@johannesgge.de>
Tue, 2 May 2023 14:31:11 +0000 (16:31 +0200)
Signed-off-by: Johannes Merkel <mail@johannesgge.de>
apps/dav/lib/CardDAV/Converter.php

index 340e3127f0a765054f7bce31b4ab3aa349f9ac84..4c7d6f9075f768ea3fa1c84414d9a7776745cc00 100644 (file)
@@ -90,6 +90,12 @@ class Converter {
                                        case IAccountManager::PROPERTY_TWITTER:
                                                $vCard->add(new Text($vCard, 'X-SOCIALPROFILE', $property->getValue(), ['TYPE' => 'TWITTER']));
                                                break;
+                                       case IAccountManager::PROPERTY_ORGANISATION:
+                                               $vCard->add(new Text($vCard, 'ORG', $property->getValue()));
+                                               break;
+                                       case IAccountManager::PROPERTY_ROLE:
+                                               $vCard->add(new Text($vCard, 'TITLE', $property->getValue()));
+                                               break;
                                }
                        }
                }