mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13: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(
|
||||
'name' => $property->name,
|
||||
'value' => $value,
|
||||
'parameters' => array(),
|
||||
'checksum' => md5($property->serialize()));
|
||||
'parameters' => array()
|
||||
);
|
||||
|
||||
// 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) {
|
||||
// Faulty entries by kaddressbook
|
||||
// Actually TYPE=PREF is correct according to RFC 2426
|
||||
|
Loading…
Reference in New Issue
Block a user