{
function ShoutboxInner(props: {
initPage: number
initPageData: ShoutsData
+ shoutError?: string
+ csrf: string
}) {
// eslint-disable-next-line solid/reactivity
const [page, setPage] = createSignal(props.initPage)
@@ -89,7 +91,7 @@ function ShoutboxInner(props: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
- // _csrf: shouts.data?.csrf,
+ _csrf: props.csrf,
message: (form.elements.namedItem('message') as HTMLInputElement).value,
private: isPrivate ? '' : undefined,
}),
@@ -124,7 +126,7 @@ function ShoutboxInner(props: {