Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2022-06-07 17:38:51 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-06-21 15:07:06 +0300
commit198c1dad714321b956fb2b6f358fa6a4ac3fa9bf (patch)
treeb772a521860df4ff297c6f600531034d12477047
parent960b57c6965847f94ad1f94fa8028fbea3dfd8d6 (diff)
replace displayed owner
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--lib/Command/DocumentProvider.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Command/DocumentProvider.php b/lib/Command/DocumentProvider.php
index ff6b18e..a9f2c17 100644
--- a/lib/Command/DocumentProvider.php
+++ b/lib/Command/DocumentProvider.php
@@ -105,6 +105,9 @@ class DocumentProvider extends Base {
$index->setOwnerId($userId);
$index->setStatus(Index::INDEX_FULL);
$indexDocument = $provider->updateDocument($index);
+
+ $index->setOwnerId($indexDocument->getAccess()->getOwnerId());
+
if (!$indexDocument->hasIndex()) {
$indexDocument->setIndex($index);
}