fix(news): restore publication flow and deduplicate dashboard friends

This commit is contained in:
simoleo89
2026-09-06 18:32:43 +02:00
parent ef94646d60
commit 9b0ea2fb16
22 changed files with 638 additions and 195 deletions
+1 -7
View File
@@ -99,13 +99,7 @@ export default async function MePage({
);
const canClaim = referralTotal >= needed;
const remaining = Math.max(0, needed - referralTotal);
const onlineFriends = [
...new Map(
friends
.filter((friend) => friend.online === "1")
.map((friend) => [friend.id, friend]),
).values(),
];
const onlineFriends = friends.filter((friend) => friend.online === "1");
const date = (value: number) =>
value
? format.dateTime(new Date(value * 1000), { dateStyle: "medium" })