Skip to content

Commit 8f6ef39

Browse files
authored
Merge pull request #49332 from wolandtel/master
2 parents 72f45b2 + e9d6c50 commit 8f6ef39

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ private function buildIndex($offset, $stopAt) {
7171
// refresh identified contacts in order to re-index
7272
foreach ($social_cards as $contact) {
7373
$offset = $contact['id'];
74-
$this->davBackend->updateCard($contact['addressbookid'], $contact['uri'], $contact['carddata']);
74+
$cardData = $contact['carddata'];
75+
if (is_resource($cardData) && (get_resource_type($cardData) === 'stream')) {
76+
$cardData = stream_get_contents($cardData);
77+
}
78+
$this->davBackend->updateCard($contact['addressbookid'], $contact['uri'], $cardData);
7579

7680
// stop after 15sec (to be continued with next chunk)
7781
if (($this->time->getTime() - $startTime) > 15) {

0 commit comments

Comments
 (0)