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
Showing
- apps/dav/appinfo/v1/carddav.php 1 addition, 0 deletionsapps/dav/appinfo/v1/carddav.php
- apps/dav/lib/AppInfo/Application.php 2 additions, 1 deletionapps/dav/lib/AppInfo/Application.php
- apps/dav/lib/CardDAV/AddressBookImpl.php 34 additions, 10 deletionsapps/dav/lib/CardDAV/AddressBookImpl.php
- apps/dav/lib/CardDAV/CardDavBackend.php 5 additions, 3 deletionsapps/dav/lib/CardDAV/CardDavBackend.php
- apps/dav/lib/CardDAV/ContactsManager.php 9 additions, 5 deletionsapps/dav/lib/CardDAV/ContactsManager.php
- apps/dav/lib/CardDAV/ImageExportPlugin.php 146 additions, 0 deletionsapps/dav/lib/CardDAV/ImageExportPlugin.php
- apps/dav/lib/Server.php 2 additions, 0 deletionsapps/dav/lib/Server.php
- apps/dav/tests/unit/CardDAV/AddressBookImplTest.php 25 additions, 12 deletionsapps/dav/tests/unit/CardDAV/AddressBookImplTest.php
- apps/dav/tests/unit/CardDAV/CardDavBackendTest.php 7 additions, 7 deletionsapps/dav/tests/unit/CardDAV/CardDavBackendTest.php
- apps/dav/tests/unit/CardDAV/ContactsManagerTest.php 2 additions, 1 deletionapps/dav/tests/unit/CardDAV/ContactsManagerTest.php
- apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php 151 additions, 0 deletionsapps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
Loading
Please register or sign in to comment