Fix several notices
This commit is contained in:
parent
3842f02b02
commit
62367923e0
3 changed files with 12 additions and 6 deletions
|
@ -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']);
|
||||
|
|
|
@ -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'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue