]> Untitled Git - lemmy-ui.git/commitdiff
Merge branch 'main' into fix/wider-max-width-1536
authorJay Sitter <jsit@users.noreply.github.com>
Sun, 25 Jun 2023 21:41:26 +0000 (17:41 -0400)
committerGitHub <noreply@github.com>
Sun, 25 Jun 2023 21:41:26 +0000 (17:41 -0400)
src/server/middleware/set-default-csp.ts
src/shared/components/post/post-listing.tsx

index a3ee52613930d991d6622ad85514096d4ec285d0..fd776ab6d88a8f2de03b8f441dae4954f39cd9fa 100644 (file)
@@ -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();
index 75d026a5d3c9f203fb0bdeb61072c92aa6897100..6c0e839fc0e5257204497e92281f67bcba3affd1 100644 (file)
@@ -741,9 +741,12 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
         <Icon icon="message-square" classes="me-1" inline />
         {post_view.counts.comments}
         {this.unreadCount && (
-          <span className="text-muted fst-italic">
-            ({this.unreadCount} {I18NextService.i18n.t("new")})
-          </span>
+          <>
+            {" "}
+            <span className="fst-italic">
+              ({this.unreadCount} {I18NextService.i18n.t("new")})
+            </span>
+          </>
         )}
       </Link>
     );