Fixed: Dont create random string for attachment id
continuous-integration/drone/push Build is passing Details

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; $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;
} }