diff -r e70004b11b3b -r 2c579ea45608 server/src/app/Libraries/Handle/HandleClient.php --- a/server/src/app/Libraries/Handle/HandleClient.php Mon Oct 16 15:18:53 2017 +0200 +++ b/server/src/app/Libraries/Handle/HandleClient.php Mon Oct 16 15:22:08 2017 +0200 @@ -1,9 +1,9 @@ getStatusCode().': '.$delRes->getReasonPhrase()); } - public function createHandleUrlRecord($handle, $url) { + public function createHandleUrlRecord($handle, $url, $title) { $this->initSession(); $currentDate = gmstrftime('%Y-%m-%dT%H:%M:%SZ'); $handleRecord = [ 'values' => [ ['index' => 1, 'ttl' => 86400, 'type' => 'URL', 'timestamp' => $currentDate, 'data' => ['value'=> $url, 'format'=> 'string']], + ['index' => 2, 'ttl' => 86400, 'type' => 'DESC', 'timestamp' => $currentDate, 'data' => ['value'=> config('corpusparole.handle_title_prefix')." : $title", 'format'=> 'string']], + ['index' => 3, 'ttl' => 86400, 'type' => 'EMAIL', 'timestamp' => $currentDate, 'data' => ['value'=> config('corpusparole.handle_contact_email'), 'format'=> 'string']], ['index' => 100, 'ttl' => 86400, 'type' => 'HS_ADMIN', 'timestamp' => $currentDate, 'data' => [ 'value' => ['index' => 200, 'handle' => $this->adminId], 'permissions' => '011111110011',