diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-11-19 19:25:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 19:25:25 +0100 |
commit | 8f6ef39391c6a1d99b81bec8f5c79b5a129e7ce0 (patch) | |
tree | 41e78368afa50d2805b0c10fed702b37177838b2 /apps | |
parent | 72f45b2f94974d0aa4718a3f031fd7b135b32b05 (diff) | |
parent | e9d6c501707dc45badc50d0c7fa0a8948a571285 (diff) | |
download | nextcloud-server-8f6ef39391c6a1d99b81bec8f5c79b5a129e7ce0.tar.gz nextcloud-server-8f6ef39391c6a1d99b81bec8f5c79b5a129e7ce0.zip |
Merge pull request #49332 from wolandtel/master
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php b/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php index 072a4feacc6..fab61d56fd6 100644 --- a/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php +++ b/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php @@ -71,7 +71,11 @@ class BuildSocialSearchIndexBackgroundJob extends QueuedJob { // refresh identified contacts in order to re-index foreach ($social_cards as $contact) { $offset = $contact['id']; - $this->davBackend->updateCard($contact['addressbookid'], $contact['uri'], $contact['carddata']); + $cardData = $contact['carddata']; + if (is_resource($cardData) && (get_resource_type($cardData) === 'stream')) { + $cardData = stream_get_contents($cardData); + } + $this->davBackend->updateCard($contact['addressbookid'], $contact['uri'], $cardData); // stop after 15sec (to be continued with next chunk) if (($this->time->getTime() - $startTime) > 15) { |