mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
commit
c0710d4411
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user