mirror of
https://github.com/friendica/friendica
synced 2025-04-30 07:44:22 +02:00
Fix some warnings
This commit is contained in:
parent
d200503381
commit
9df68da80e
2 changed files with 9 additions and 3 deletions
|
@ -264,7 +264,7 @@ class ClientToServer
|
|||
$item['contact-id'] = $owner['id'];
|
||||
$item['author-id'] = $item['owner-id'] = Contact::getPublicIdByUserId($uid);
|
||||
$item['title'] = $object_data['name'];
|
||||
$item['body'] = Markdown::toBBCode($object_data['content']);
|
||||
$item['body'] = Markdown::toBBCode($object_data['content'] ?? '');
|
||||
$item['app'] = $application['name'] ?? 'API';
|
||||
|
||||
if (!empty($object_data['target'][Receiver::TARGET_GLOBAL])) {
|
||||
|
@ -354,6 +354,10 @@ class ClientToServer
|
|||
|
||||
$apcontact = APContact::getByURL($owner['url']);
|
||||
|
||||
if (empty($apcontact)) {
|
||||
throw new \Friendica\Network\HTTPException\NotFoundException();
|
||||
}
|
||||
|
||||
return self::getCollection($condition, DI::baseUrl() . '/outbox/' . $owner['nickname'], $page, $max_id, $uid, $apcontact['statuses_count']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue