Fixed: Create basename from random string if file cannot be found

This commit is contained in:
philipp lang 2021-10-30 22:16:41 +02:00
parent 405c242958
commit 7477d85ba5
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class FacebookService extends SocialService {
$href = $this->saveUrl(data_get($attachment, 'media.image.src')); break;
case 'share':
case 'event':
$fid = data_get($attachment, '0.target.id', '');
$fid = data_get($attachment, '0.target.id', data_get($attachment, 'target.id', str_random(32)));
if (!data_get($attachment, 'media.image.src')) {
continue 2;
}