misc: encode uri components for post fetching
This commit is contained in:
6 files changed
+15
-9
No files matched your search
@@ -285,7 +285,7 @@
|
||||
</header>
|
||||
{#if title && id}
|
||||
<a
|
||||
href="/post/{profile.data.instance}/{id}"
|
||||
href="/post/{encodeURIComponent(profile.data.instance)}/{id}"
|
||||
class="inline hover:underline
|
||||
hover:text-primary-900 hover:dark:text-primary-100 transition-colors max-[480px]:!mt-0
|
||||
{settings.font == 'satoshi/nunito'
|
||||
|
||||
@@ -61,7 +61,7 @@ export const isYoutubeLink = (url?: string): RegExpMatchArray | null => {
|
||||
}
|
||||
|
||||
export const postLink = (post: Post) =>
|
||||
`/post/${profile.data.instance}/${post.id}`
|
||||
`/post/${encodeURIComponent(profile.data.instance)}/${post.id}`
|
||||
|
||||
export type MediaType = 'video' | 'image' | 'iframe' | 'embed' | 'none'
|
||||
export type IframeType = 'youtube' | 'video' | 'none'
|
||||
|
||||
@@ -14,9 +14,8 @@
|
||||
|
||||
<Material
|
||||
padding="none"
|
||||
rounding="full"
|
||||
color="uniform"
|
||||
class="flex flex-row space-x-2 items-center px-4 py-3 {clazz}"
|
||||
class="flex flex-row space-x-2 items-center px-4 py-3 !rounded-3xl {clazz}"
|
||||
>
|
||||
<Icon
|
||||
src={InformationCircle}
|
||||
@@ -24,7 +23,7 @@
|
||||
mini
|
||||
class="text-primary-900 dark:text-primary-100"
|
||||
/>
|
||||
<div class="flex items-center w-full">
|
||||
<div class="flex flex-col md:flex-row items-center w-full">
|
||||
{#if children}
|
||||
{@render children?.()}
|
||||
{:else if content}
|
||||
|
||||
Reference in new issue
Block a user