Fix scanall, was only scanning one dir. Default route is now /home. Fix 500 error for when displaying an image that doesnt exist
This commit is contained in:
parent
86dceac617
commit
e142615e6c
@ -49,8 +49,9 @@ class CatalogScanAll extends Command
|
||||
Log::info('Scanning disk: '.Storage::disk('nas')->path(''));
|
||||
|
||||
$c = 0;
|
||||
$dirs = Storage::disk('nas')->directories($class::dir_prefix());
|
||||
// Scan files in dir, and make sure file lives in DB, (touch it if it does), otherwise create it
|
||||
foreach (Storage::disk('nas')->directories($class::dir_prefix()) as $dir) {
|
||||
foreach ($dirs as $dir) {
|
||||
Log::info(sprintf(' - DIR: %s',$dir));
|
||||
|
||||
// Take x files at a time and check the DB
|
||||
|
@ -235,6 +235,9 @@ class Photo extends Abstracted\Catalog
|
||||
*/
|
||||
public function image(): ?string
|
||||
{
|
||||
if (! $this->o)
|
||||
return NULL;
|
||||
|
||||
$imo = clone($this->o);
|
||||
|
||||
return $imo ? $this->rotate($imo) : NULL;
|
||||
|
@ -39,7 +39,7 @@ Route::post('/p/undelete/{o}',[PhotoController::class,'undelete'])
|
||||
Route::post('/v/undelete/{o}',[VideoController::class,'undelete'])
|
||||
->where('o','[0-9]+');
|
||||
|
||||
Route::redirect('/','login');
|
||||
Route::redirect('/','home');
|
||||
|
||||
Route::get('/login',[LoginController::class,'showLoginForm'])
|
||||
->name('login');
|
Loading…
x
Reference in New Issue
Block a user