Merge pull request #9554 from annando/insert-mode

Fix notice
This commit is contained in:
Hypolite Petovan 2020-11-19 16:54:39 -05:00 committed by GitHub
commit e6fd636b7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -659,7 +659,7 @@ class OnePoll
$datarray['owner-link'] = "mailto:".$contact['addr'];
$datarray['owner-avatar'] = $contact['photo'];
if ($datarray['thr-parent'] === $datarray['uri']) {
if (empty($datarray['thr-parent']) || ($datarray['thr-parent'] === $datarray['uri'])) {
$datarray['private'] = Item::PRIVATE;
}