Fixed: Create basename from random string if file cannot be found
This commit is contained in:
parent
405c242958
commit
7477d85ba5
|
@ -66,7 +66,7 @@ class FacebookService extends SocialService {
|
||||||
$href = $this->saveUrl(data_get($attachment, 'media.image.src')); break;
|
$href = $this->saveUrl(data_get($attachment, 'media.image.src')); break;
|
||||||
case 'share':
|
case 'share':
|
||||||
case 'event':
|
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')) {
|
if (!data_get($attachment, 'media.image.src')) {
|
||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue