Fixed: Dont create random string for attachment id
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
091a9a5bde
commit
055674d587
|
@ -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', data_get($attachment, 'target.id', str_random(32)));
|
$fid = data_get($attachment, '0.target.id', data_get($attachment, 'target.id', substr(base64_encode(json_encode($attachment)), 0, 20)));
|
||||||
if (!data_get($attachment, 'media.image.src')) {
|
if (!data_get($attachment, 'media.image.src')) {
|
||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue