mirror of
https://github.com/friendica/friendica
synced 2024-11-18 06:23:41 +00:00
Ward against missing plink in createSharedBlockByArray
- Address https://github.com/friendica/friendica/issues/12486#issuecomment-1492984224 - Add logging to troubleshoot the issue
This commit is contained in:
parent
f721565046
commit
c673c478ee
1 changed files with 5 additions and 1 deletions
|
@ -3042,7 +3042,11 @@ class Item
|
|||
}
|
||||
|
||||
if (!empty($quote_uri_id)) {
|
||||
$item['body'] .= "\n" . DI::contentItem()->createSharedBlockByArray($shared_item);
|
||||
if (isset($shared_item['plink'])) {
|
||||
$item['body'] .= "\n" . DI::contentItem()->createSharedBlockByArray($shared_item);
|
||||
} else {
|
||||
DI::logger()->warning('Missing plink in shared item', ['item' => $item, 'shared' => $shared, 'quote_uri_id' => $quote_uri_id, 'shared_item' => $shared_item]);
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($shared_item['uri-id'])) {
|
||||
|
|
Loading…
Reference in a new issue