diff options
| author | Adam Soltys <[email protected]> | 2025-01-23 16:40:00 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-23 16:40:00 -0800 |
| commit | 2839fe3d476f1e4ba91b19f42161334bfedc72a0 (patch) | |
| tree | ad083d5f1ecc5d152720673938147309a8831511 /src/routes/(app) | |
| parent | 50340d461c45945eed0f84f2b5f79a94d60df340 (diff) | |
| download | coinos-ui-2839fe3d476f1e4ba91b19f42161334bfedc72a0.tar.gz coinos-ui-2839fe3d476f1e4ba91b19f42161334bfedc72a0.zip | |
unified event endpoint
Diffstat (limited to 'src/routes/(app)')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+layout.server.ts | 3 | ||||
| -rw-r--r-- | src/routes/(app)/e/[id]/+page.server.ts | 8 | ||||
| -rw-r--r-- | src/routes/(app)/thread/[id]/+page.svelte | 1 |
3 files changed, 1 insertions, 11 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts index d714ce76..70e7ebdb 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.server.ts +++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts @@ -14,8 +14,5 @@ export async function load({ depends, parent }) { () => [], ); - // const follows = []; - // const followers = []; - return { follows, followers, followList, rate: rates[subject.currency] }; } diff --git a/src/routes/(app)/e/[id]/+page.server.ts b/src/routes/(app)/e/[id]/+page.server.ts index ad692893..2a62dba0 100644 --- a/src/routes/(app)/e/[id]/+page.server.ts +++ b/src/routes/(app)/e/[id]/+page.server.ts @@ -3,13 +3,7 @@ import { error } from "@sveltejs/kit"; export async function load({ params }) { try { - const event = await get(`/event/${params.id}`); - const { parts, names } = await post("/parseEvent", { event }); - event.parts = parts; - event.names = names; - event.author = await get(`/users/${event.pubkey}`); - event.zaps = await get(`/zaps/${params.id}`); - + const event = await get(`/event/${params.id}/full`); return { event }; } catch (e) { console.log(e); diff --git a/src/routes/(app)/thread/[id]/+page.svelte b/src/routes/(app)/thread/[id]/+page.svelte index 40eaec83..932b6dfd 100644 --- a/src/routes/(app)/thread/[id]/+page.svelte +++ b/src/routes/(app)/thread/[id]/+page.svelte @@ -3,7 +3,6 @@ let { data } = $props(); let { thread } = $derived(data); - console.log(thread); </script> <div class="container px-4 max-w-xl mx-auto space-y-5"> |
