1
0
Fork 0

Fix several notices

This commit is contained in:
Michael 2022-04-11 18:57:30 +00:00
commit 62367923e0
3 changed files with 12 additions and 6 deletions

View file

@ -1002,6 +1002,8 @@ class Processor
$posts = Post\Collection::selectToArrayForContact($pcid, Post\Collection::FEATURED);
if (!empty($posts)) {
$old_featured = array_column($posts, 'uri-id');
} else {
$old_featured = [];
}
$featured = ActivityPub::fetchItems($apcontact['featured']);

View file

@ -4101,10 +4101,10 @@ class Diaspora
'author-id' => $author,
'owner-id' => $author,
'body' => $post,
'allow_cid' => $owner['allow_cid'],
'allow_gid' => $owner['allow_gid'],
'deny_cid' => $owner['deny_cid'],
'deny_gid' => $owner['deny_gid'],
'allow_cid' => $owner['allow_cid'] ?? '',
'allow_gid' => $owner['allow_gid']?? '',
'deny_cid' => $owner['deny_cid'] ?? '',
'deny_gid' => $owner['deny_gid'] ?? '',
];
if (!empty($item['allow_cid'] . $item['allow_gid'] . $item['deny_cid'] . $item['deny_gid'])) {