Repair: copy legacy joinDate into new user's created_at when creating users from legacy wallz

This commit is contained in:
2026-03-22 09:13:39 +01:00
parent e8b5edf5d2
commit 2608be7420
80 changed files with 3991 additions and 723 deletions

View File

@@ -202,16 +202,14 @@
@endif
</a>
<a href="{{ Route::has('messages.index') ? route('messages.index') : '/messages' }}"
class="relative w-10 h-10 inline-flex items-center justify-center rounded-lg hover:bg-white/5"
title="Messages">
<svg class="w-5 h-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" />
</svg>
@if(($msgCount ?? 0) > 0)
<span class="absolute -bottom-1 right-0 text-[11px] tabular-nums px-1.5 py-0.5 rounded bg-red-700/70 text-white border border-sb-line">{{ $msgCount }}</span>
@endif
</a>
@php
$toolbarMessagesProps = [
'initialUnreadCount' => (int) ($msgCount ?? 0),
'userId' => (int) ($userId ?? Auth::id() ?? 0),
'href' => Route::has('messages.index') ? route('messages.index') : '/messages',
];
@endphp
<div id="toolbar-messages-root" data-props='@json($toolbarMessagesProps)'></div>
<div id="toolbar-notification-root" data-props='@json(['initialUnreadCount' => (int) ($noticeCount ?? 0)])'></div>
</div>