fixed progress and alignment of style-change
This commit is contained in:
@@ -47,9 +47,13 @@ class ImageController extends Controller
|
||||
// Fetch images from the database after synchronization
|
||||
$query = Image::orderBy('updated_at', 'desc');
|
||||
|
||||
// If user is not authenticated, filter by is_public
|
||||
// If user is not authenticated, filter by is_public, but also include their temporary images
|
||||
if (!auth()->check()) {
|
||||
$query->where('is_public', true);
|
||||
$query->where(function ($q) {
|
||||
$q->where('is_public', true)->orWhere('is_temp', true);
|
||||
});
|
||||
} else {
|
||||
// If user is authenticated, show all their images
|
||||
}
|
||||
|
||||
$newImageTimespanMinutes = Setting::where('key', 'new_image_timespan_minutes')->first()->value ?? 60; // Default to 60 minutes
|
||||
|
||||
Reference in New Issue
Block a user