From 981d1581a4fdb01b935d50892ef2030ba6a481ca Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Sun, 9 Jul 2023 12:29:41 -0700 Subject: [PATCH] misc: Tweak CORS --- .../components/lemmy/comment/Comment.svelte | 4 ++-- .../lemmy/comment/CommentVote.svelte | 8 ++++---- .../components/lemmy/comment/Comments.svelte | 19 ++++++++----------- src/lib/components/ui/Avatar.svelte | 4 +--- src/lib/components/user/UserLink.svelte | 7 +------ src/lib/components/util/RelativeDate.svelte | 2 +- src/lib/lemmy.ts | 9 +++++++-- src/routes/+error.svelte | 15 +++++++++++++++ 8 files changed, 39 insertions(+), 29 deletions(-) diff --git a/src/lib/components/lemmy/comment/Comment.svelte b/src/lib/components/lemmy/comment/Comment.svelte index c8639407..8de0ea7a 100644 --- a/src/lib/components/lemmy/comment/Comment.svelte +++ b/src/lib/components/lemmy/comment/Comment.svelte @@ -74,14 +74,14 @@
-
+
-
+ {/if} {/each} diff --git a/src/lib/components/ui/Avatar.svelte b/src/lib/components/ui/Avatar.svelte index dd45675b..0f65e20b 100644 --- a/src/lib/components/ui/Avatar.svelte +++ b/src/lib/components/ui/Avatar.svelte @@ -6,9 +6,7 @@ {#if avatar} - + {/if} {user.name} diff --git a/src/lib/components/util/RelativeDate.svelte b/src/lib/components/util/RelativeDate.svelte index 03627064..1a5e406d 100644 --- a/src/lib/components/util/RelativeDate.svelte +++ b/src/lib/components/util/RelativeDate.svelte @@ -1,6 +1,6 @@
@@ -9,8 +12,20 @@ Failed to fetch page. Most major lemmy instances are having quite a lot of issues right now, this might be on their end.

+

+ This could be a CORS issue. The instance you're using must update to Lemmy + 1.18.1 to fix CORS. +

{JSON.stringify($page.error)} Retry +