Fix warning: Undefined array key "post"
This commit is contained in:
parent
4f55b1031b
commit
349fa08ece
1 changed files with 1 additions and 1 deletions
|
@ -3047,7 +3047,7 @@ class Item
|
||||||
$shared_item = Post::selectFirst($fields, ['uri-id' => $media[0]['media-uri-id'], 'uid' => [$item['uid'], 0]]);
|
$shared_item = Post::selectFirst($fields, ['uri-id' => $media[0]['media-uri-id'], 'uid' => [$item['uid'], 0]]);
|
||||||
if (empty($shared_item['uri-id'])) {
|
if (empty($shared_item['uri-id'])) {
|
||||||
$shared_item = Post::selectFirst($fields, ['plink' => $media[0]['url'], 'uid' => [$item['uid'], 0]]);
|
$shared_item = Post::selectFirst($fields, ['plink' => $media[0]['url'], 'uid' => [$item['uid'], 0]]);
|
||||||
} elseif (strtolower($shared['post']['uri']) != strtolower($media[0]['url'])) {
|
} elseif (!in_array(strtolower($media[0]['url']), $shared_links)) {
|
||||||
$shared_links[] = strtolower($media[0]['url']);
|
$shared_links[] = strtolower($media[0]['url']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue