mirror of
https://github.com/friendica/friendica
synced 2025-04-22 02:30:11 +00:00
Fix logger warmings/errors
This commit is contained in:
parent
93acaff014
commit
f7be610629
4 changed files with 14 additions and 7 deletions
|
@ -1966,7 +1966,9 @@ class Processor
|
|||
$name = $tag['name'];
|
||||
}
|
||||
|
||||
$body = str_replace($tag['name'], $hash . '[url=' . $tag['href'] . ']' . $name . '[/url]', $body);
|
||||
if (Network::isValidHttpUrl($tag['href'])) {
|
||||
$body = str_replace($tag['name'], $hash . '[url=' . $tag['href'] . ']' . $name . '[/url]', $body);
|
||||
}
|
||||
}
|
||||
|
||||
return $body;
|
||||
|
|
|
@ -648,7 +648,7 @@ class Transmitter
|
|||
}
|
||||
|
||||
$parent = Post::selectFirst(['causer-link', 'post-reason'], ['id' => $item['parent']]);
|
||||
if (($parent['post-reason'] == Item::PR_ANNOUNCEMENT) && !empty($parent['causer-link'])) {
|
||||
if (!empty($parent) && ($parent['post-reason'] == Item::PR_ANNOUNCEMENT) && !empty($parent['causer-link'])) {
|
||||
$profile = APContact::getByURL($parent['causer-link'], false);
|
||||
$is_forum_thread = isset($profile['type']) && $profile['type'] == 'Group';
|
||||
} else {
|
||||
|
@ -1610,7 +1610,7 @@ class Transmitter
|
|||
$data['url'] = $link ?? $item['plink'];
|
||||
$data['attributedTo'] = $item['author-link'];
|
||||
$data['sensitive'] = self::isSensitive($item['uri-id']);
|
||||
$data['conversation'] = $data['context'] = $item['conversation'];
|
||||
$data['conversation'] = $data['context'] = ($item['conversation'] ?? '');
|
||||
|
||||
if (!empty($item['title'])) {
|
||||
$data['name'] = BBCode::toPlaintext($item['title'], false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue