Compare commits
3 Commits
c43a171794
...
a7066a34cd
Author | SHA1 | Date | |
---|---|---|---|
|
a7066a34cd | ||
|
07ebc60bc3 | ||
|
5e77106297 |
@ -70,7 +70,7 @@ export default function useModal () {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
onHide={keepOpen ? () => {} : onClose} show={!!content}
|
onHide={keepOpen ? undefined : onClose} show={!!content}
|
||||||
className={className}
|
className={className}
|
||||||
dialogClassName={className}
|
dialogClassName={className}
|
||||||
contentClassName={className}
|
contentClassName={className}
|
||||||
|
@ -83,7 +83,7 @@ export function middleware (request) {
|
|||||||
|
|
||||||
const cspHeader = [
|
const cspHeader = [
|
||||||
// if something is not explicitly allowed, we don't allow it.
|
// if something is not explicitly allowed, we don't allow it.
|
||||||
"default-src 'none'",
|
"default-src 'self' a.stacker.news",
|
||||||
"font-src 'self' a.stacker.news",
|
"font-src 'self' a.stacker.news",
|
||||||
// we want to load images from everywhere but we can limit to HTTPS at least
|
// we want to load images from everywhere but we can limit to HTTPS at least
|
||||||
"img-src 'self' a.stacker.news m.stacker.news https: data: blob:" + devSrc,
|
"img-src 'self' a.stacker.news m.stacker.news https: data: blob:" + devSrc,
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
-- we had a bug where it was possible to delete bios, this migration will restore them
|
||||||
|
UPDATE "Item"
|
||||||
|
SET "deletedAt" = NULL
|
||||||
|
WHERE "bio"
|
Loading…
x
Reference in New Issue
Block a user