mirror of
https://codeberg.org/SeedDMS/paperless
synced 2025-05-11 12:11:17 +00:00
return first 3000 chars as content
This commit is contained in:
parent
dec9467f8c
commit
b1e64e8d66
|
@ -65,7 +65,7 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
|||
if($searchhit = $lucenesearch->getDocument($document->getID())) {
|
||||
$idoc = $searchhit->getDocument();
|
||||
try {
|
||||
$content = htmlspecialchars(mb_strimwidth($idoc->getFieldValue('content'), 0, 1000, '...'));
|
||||
$content = htmlspecialchars(mb_strimwidth($idoc->getFieldValue('content'), 0, 3000, '...'));
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user