From d8963d9bfe34a6dbd630cbf2b4e9dc0d41993ce9 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Sun, 25 Jun 2023 12:09:53 -0400 Subject: [PATCH 1/4] Add margin to new comment text --- src/shared/components/post/post-listing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 092e253e..20be5b23 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -741,7 +741,7 @@ export class PostListing extends Component { {post_view.counts.comments} {this.unreadCount && ( - + ({this.unreadCount} {I18NextService.i18n.t("new")}) )} From 6a69d6b06385b932d4f8a0a8b67de6ad3d4bedae Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Sun, 25 Jun 2023 13:28:00 -0400 Subject: [PATCH 2/4] Use spae instead of margin --- src/shared/components/post/post-listing.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 20be5b23..e43590e5 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -741,9 +741,12 @@ export class PostListing extends Component { {post_view.counts.comments} {this.unreadCount && ( - - ({this.unreadCount} {I18NextService.i18n.t("new")}) - + <> + {" "} + + ({this.unreadCount} {I18NextService.i18n.t("new")}) + + )} ); From 434502c6785c1651a2e3d631dbde7f7833db8d22 Mon Sep 17 00:00:00 2001 From: Dominic Mazzoni Date: Sun, 25 Jun 2023 12:12:32 -0700 Subject: [PATCH 3/4] CSP should allow data urls for media-src or the audio captcha won't work --- src/server/middleware/set-default-csp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/middleware/set-default-csp.ts b/src/server/middleware/set-default-csp.ts index a3ee5261..fd776ab6 100644 --- a/src/server/middleware/set-default-csp.ts +++ b/src/server/middleware/set-default-csp.ts @@ -3,7 +3,7 @@ import type { NextFunction, Response } from "express"; export default function ({ res, next }: { res: Response; next: NextFunction }) { res.setHeader( "Content-Security-Policy", - `default-src 'self'; manifest-src *; connect-src *; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; base-uri 'self'; frame-src *; media-src *` + `default-src 'self'; manifest-src *; connect-src *; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; base-uri 'self'; frame-src *; media-src * data:` ); next(); From 353d4c7e39dd386eb902c6b3cc656f67b27ec793 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Sun, 25 Jun 2023 15:13:27 -0400 Subject: [PATCH 4/4] Update post-listing.tsx Removed unnecessary bootstrap class --- src/shared/components/post/post-listing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index e43590e5..76a3e445 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -743,7 +743,7 @@ export class PostListing extends Component { {this.unreadCount && ( <> {" "} - + ({this.unreadCount} {I18NextService.i18n.t("new")})