mirror of
https://github.com/friendica/friendica
synced 2024-11-18 15:43:42 +00:00
Merge pull request #11354 from MrPetovan/bug/notices
Check array key existence in ActivityPub\Transmitter::createPermissionBlockForItem
This commit is contained in:
commit
677cbf8aea
1 changed files with 1 additions and 1 deletions
|
@ -529,7 +529,7 @@ class Transmitter
|
|||
$parent = Post::selectFirst(['causer-link', 'post-reason'], ['id' => $item['parent']]);
|
||||
if (($parent['post-reason'] == Item::PR_ANNOUNCEMENT) && !empty($parent['causer-link'])) {
|
||||
$profile = APContact::getByURL($parent['causer-link'], false);
|
||||
$is_forum_thread = ($profile['type'] == 'Group');
|
||||
$is_forum_thread = isset($profile['type']) && $profile['type'] == 'Group';
|
||||
} else {
|
||||
$is_forum_thread = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue