Filter out flagged entries in the original query
This commit is contained in:
parent
49f9f7fd3c
commit
fd82adc73e
3 changed files with 2 additions and 4 deletions
|
@ -29,7 +29,7 @@ public static function insertGuestbookEntry(Request $request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function selectEntries() {
|
public static function selectEntries() {
|
||||||
$entries = GuestbookEntry::orderBy('created_at', 'desc')->get();
|
$entries = GuestbookEntry::where("legacy_flagged", false)->orderBy('created_at', 'desc')->get();
|
||||||
return $entries;
|
return $entries;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'name' => env('APP_NAME', 'wah.moe'),
|
'name' => env('APP_NAME', 'wah.moe'),
|
||||||
'version' => '2025.08.30-patch1',
|
'version' => '2025.08.30-patch2',
|
||||||
'env' => env('APP_ENV', 'production'),
|
'env' => env('APP_ENV', 'production'),
|
||||||
'debug' => (bool) env('APP_DEBUG', false),
|
'debug' => (bool) env('APP_DEBUG', false),
|
||||||
'url' => env('APP_URL', 'http://localhost'),
|
'url' => env('APP_URL', 'http://localhost'),
|
||||||
|
|
|
@ -66,8 +66,6 @@
|
||||||
<font size="+2"><b>Entries ({{ count($entries) }} total)</b></font>
|
<font size="+2"><b>Entries ({{ count($entries) }} total)</b></font>
|
||||||
<table cellspacing="10" cellpadding="0" border="0">
|
<table cellspacing="10" cellpadding="0" border="0">
|
||||||
@foreach ($entries as $entry)
|
@foreach ($entries as $entry)
|
||||||
{{-- Skip entries flagged as legacy --}}
|
|
||||||
@if($entry->legacy_flagged) @php continue @endphp @endif
|
|
||||||
@php
|
@php
|
||||||
$user_agent = $parser->parse($entry->agent);
|
$user_agent = $parser->parse($entry->agent);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue