UI: portal/header refinements, board index UX, and user settings

This commit is contained in:
Micha
2026-01-01 19:54:02 +01:00
parent f83748cc76
commit 8604cdf95d
26 changed files with 2065 additions and 227 deletions

View File

@@ -11,7 +11,7 @@ class PostController extends Controller
{
public function index(Request $request): JsonResponse
{
$query = Post::query();
$query = Post::query()->withoutTrashed();
$threadParam = $request->query('thread');
if (is_string($threadParam)) {
@@ -48,8 +48,10 @@ class PostController extends Controller
return response()->json($this->serializePost($post), 201);
}
public function destroy(Post $post): JsonResponse
public function destroy(Request $request, Post $post): JsonResponse
{
$post->deleted_by = $request->user()?->id;
$post->save();
$post->delete();
return response()->json(null, 204);