mirror of
https://github.com/friendica/friendica
synced 2024-11-19 23:03:41 +00:00
Handle fatal error when attachment url is null
This commit is contained in:
parent
d47d45e83f
commit
49fee4096a
1 changed files with 3 additions and 1 deletions
|
@ -189,7 +189,7 @@ class Processor
|
||||||
}
|
}
|
||||||
|
|
||||||
$item['body'] .= "\n[video]" . $attach['url'] . '[/video]';
|
$item['body'] .= "\n[video]" . $attach['url'] . '[/video]';
|
||||||
} else {
|
} elseif (!empty($attach['url'])) {
|
||||||
if (!empty($item['attach'])) {
|
if (!empty($item['attach'])) {
|
||||||
$item['attach'] .= ',';
|
$item['attach'] .= ',';
|
||||||
} else {
|
} else {
|
||||||
|
@ -202,6 +202,8 @@ class Processor
|
||||||
$attach['mediaType'] ?? '',
|
$attach['mediaType'] ?? '',
|
||||||
$attach['name'] ?? ''
|
$attach['name'] ?? ''
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
Logger::notice('Unknown attachment', ['attach' => $attach]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue