diff options
author | Georg Ehrke <developer@georgehrke.com> | 2016-06-21 15:25:44 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-06-21 15:25:44 +0200 |
commit | 1452b74de7f5a3b3afae546b757d2a3889857a61 (patch) | |
tree | 0eba5164f1af53876cdeac866e273ab7a40393a4 /apps/dav/lib/Server.php | |
parent | f2f1eab7f4ade9abb77f70c6a5c3244b5c6153f4 (diff) | |
download | nextcloud-server-1452b74de7f5a3b3afae546b757d2a3889857a61.tar.gz nextcloud-server-1452b74de7f5a3b3afae546b757d2a3889857a61.zip |
Contacts API: replace raw image data with url (#25081)
* add uri to AddressBookImpl array
* Introduce ImageExportPlugin for CardDav
* add plugin to v1 routes
* replace binary contact photo with link
* update tests
* Adding unit tests
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r-- | apps/dav/lib/Server.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index e150f441b82..7fa1b13783b 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -25,6 +25,7 @@ namespace OCA\DAV; use OCA\DAV\CalDAV\Schedule\IMipPlugin; +use OCA\DAV\CardDAV\ImageExportPlugin; use OCA\DAV\Connector\Sabre\Auth; use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin; use OCA\DAV\Connector\Sabre\DavAclPlugin; @@ -103,6 +104,7 @@ class Server { // addressbook plugins $this->server->addPlugin(new \OCA\DAV\CardDAV\Plugin()); $this->server->addPlugin(new VCFExportPlugin()); + $this->server->addPlugin(new ImageExportPlugin(\OC::$server->getLogger())); // system tags plugins $this->server->addPlugin(new \OCA\DAV\SystemTag\SystemTagPlugin( |