mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Don't index PHOTO and truncate value to 254 chars. Fixes #306
This commit is contained in:
parent
a0b0540767
commit
faff3aaaa6
@ -57,7 +57,7 @@ Class Properties {
|
|||||||
*/
|
*/
|
||||||
public static $index_properties = array(
|
public static $index_properties = array(
|
||||||
'BDAY', 'UID', 'N', 'FN', 'TITLE', 'ROLE', 'NOTE', 'NICKNAME',
|
'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
|
* Get options for IMPP properties
|
||||||
@ -266,7 +266,7 @@ Class Properties {
|
|||||||
\OCP\User::getUser(),
|
\OCP\User::getUser(),
|
||||||
$contactid,
|
$contactid,
|
||||||
$property->name,
|
$property->name,
|
||||||
$property->value,
|
substr($property->value, 0, 254),
|
||||||
$preferred,
|
$preferred,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user