Fixed: Dont create random string for attachment id

This commit is contained in:
Philipp Lang 2021-11-28 16:09:36 +01:00
parent 091a9a5bde
commit 055674d587
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', 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')) {
continue 2;
}