1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Don't index PHOTO and truncate value to 254 chars. Fixes #306

This commit is contained in:
Thomas Tanghus 2013-12-17 18:04:26 +01:00
parent a0b0540767
commit faff3aaaa6

View File

@ -57,7 +57,7 @@ Class Properties {
*/
public static $index_properties = array(
'BDAY', 'UID', 'N', 'FN', 'TITLE', 'ROLE', 'NOTE', 'NICKNAME',
'ORG', 'CATEGORIES', 'EMAIL', 'TEL', 'IMPP', 'ADR', 'URL', 'GEO', 'PHOTO');
'ORG', 'CATEGORIES', 'EMAIL', 'TEL', 'IMPP', 'ADR', 'URL', 'GEO');
/**
* Get options for IMPP properties
@ -266,7 +266,7 @@ Class Properties {
\OCP\User::getUser(),
$contactid,
$property->name,
$property->value,
substr($property->value, 0, 254),
$preferred,
)
);