Merge pull request #1001 from openclassify/vedatakd

Vedatakd
This commit is contained in:
Fatih Alp 2021-03-23 16:52:49 +03:00 committed by GitHub
commit c0710d4411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,10 +330,8 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
'extension' => $image->extension,
]);
$coverPhoto = 'files/images/' . $fileName;
} else {
$coverPhoto = $thumbnail->url();
}
$coverPhoto = 'files/images/' . $fileName;
} else {
$coverPhoto = null;
}
@ -502,8 +500,9 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
->paginate(setting_value('visiosoft.module.advs::popular_ads_limit', setting_value('streams::per_page')));
}
public function getName($id){
return $this->find($id)->name;
public function getName($id)
{
return $this->find($id)->name;
}
public function approveAds($adsIDs)