campfire/src/routes/[server]/[account]/[post]/+page.js

11 lines
272 B
JavaScript

export async function load({ params }) {
let handle = params.account;
if (handle.startsWith('@'))
handle = handle.substring(1);
return {
server_host: params.server,
account_handle: params.account,
post_id: params.post
};
}