mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-02 14:24:10 +01:00
Only do checksum on properties that can appear more than once. Cuts off around a 3rd of the the json response size.
This commit is contained in:
parent
3b3adb318a
commit
b8813e0357
@ -731,8 +731,13 @@ class VCard {
|
|||||||
$temp = array(
|
$temp = array(
|
||||||
'name' => $property->name,
|
'name' => $property->name,
|
||||||
'value' => $value,
|
'value' => $value,
|
||||||
'parameters' => array(),
|
'parameters' => array()
|
||||||
'checksum' => md5($property->serialize()));
|
);
|
||||||
|
|
||||||
|
// This cuts around a 3rd off of the json response size.
|
||||||
|
if(in_array($property->name, App::$multi_properties)) {
|
||||||
|
$temp['checksum'] = md5($property->serialize());
|
||||||
|
}
|
||||||
foreach($property->parameters as $parameter) {
|
foreach($property->parameters as $parameter) {
|
||||||
// Faulty entries by kaddressbook
|
// Faulty entries by kaddressbook
|
||||||
// Actually TYPE=PREF is correct according to RFC 2426
|
// Actually TYPE=PREF is correct according to RFC 2426
|
||||||
|
Loading…
Reference in New Issue
Block a user