makes profiles public

This commit is contained in:
Christian Beutel
2024-11-16 15:13:22 +01:00
parent 2e8d7f5e82
commit dcc8da83e7
19 changed files with 364 additions and 41 deletions

View File

@@ -78,7 +78,7 @@
function handleDropdownClick(item: { text: string; value: any }) {
if (item.value == "profile") {
goto("/profile");
goto(`/profile/${$currentUser?.id}`);
} else if (item.value == "logout") {
logout();
window.location.href = "/";
@@ -128,7 +128,7 @@
<div class="basis-full"></div>
<hr class="border-input-border" />
<div class="flex gap-4 items-center justify-between m-4">
<a href="/profile">
<a href="/profile/{$currentUser.id}">
<img
class="rounded-full w-10 aspect-square"
src={getFileURL($currentUser, $currentUser.avatar) ||
@@ -136,7 +136,7 @@
alt="avatar"
/>
</a>
<a href="/profile">
<a href="/profile/{$currentUser.id}">
<p class="text-sm">{$currentUser.username}</p>
<p class="text-sm text-gray-500">
{$currentUser.email}