diff --git a/package.json b/package.json
index 289d1149..35efc4a1 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
"deploy": "graphql-codegen && npm run typecheck && vite build && vercel",
"dev": "vite",
"e2e": "npx playwright test --project=chromium",
- "fix": "npm run lint:code:fix && stylelint **/*.{scss,css} --fix",
+ "fix": "npm run check:code:fix && stylelint **/*.{scss,css} --fix",
"format": "npx @biomejs/biome format src/. --write",
"hygen": "HYGEN_TMPLS=gen hygen",
"postinstall": "npm run codegen && npx patch-package",
diff --git a/src/components/Views/Author/Author.tsx b/src/components/Views/Author/Author.tsx
index a33c414a..c5a44e98 100644
--- a/src/components/Views/Author/Author.tsx
+++ b/src/components/Views/Author/Author.tsx
@@ -3,10 +3,10 @@ import type { Author, Reaction, Shout, Topic } from '../../../graphql/schema/cor
import { getPagePath } from '@nanostores/router'
import { clsx } from 'clsx'
import { For, Match, Show, Switch, createEffect, createMemo, createSignal, on, onMount } from 'solid-js'
-import { Meta, Title } from '../../../context/meta'
import { useFollowing } from '../../../context/following'
import { useLocalize } from '../../../context/localize'
+import { Meta, Title } from '../../../context/meta'
import { useSession } from '../../../context/session'
import { apiClient } from '../../../graphql/client/core'
import { router, useRouter } from '../../../stores/router'
@@ -87,7 +87,7 @@ export const AuthorView = (props: Props) => {
setFollowing([...(authors || []), ...(topics || [])])
setFollowers(followersResult || [])
- console.debug('[components.Author] following data loaded', subscriptionsResult)
+ console.info('[components.Author] data loaded')
} catch (error) {
console.error('[components.Author] fetch error', error)
}
@@ -244,7 +244,7 @@ export const AuthorView = (props: Props) => {
class={styles.longBio}
classList={{ [styles.longBioExpanded]: isBioExpanded() }}
>
-
(bioContainerRef.current = el)} innerHTML={author().about} />
+
(bioContainerRef.current = el)} innerHTML={author()?.about || ''} />
diff --git a/src/components/Views/PublishSettings/PublishSettings.tsx b/src/components/Views/PublishSettings/PublishSettings.tsx
index de86a02b..44289502 100644
--- a/src/components/Views/PublishSettings/PublishSettings.tsx
+++ b/src/components/Views/PublishSettings/PublishSettings.tsx
@@ -59,7 +59,7 @@ export const PublishSettings = (props: Props) => {
const composeDescription = () => {
if (!props.form.description) {
- const cleanFootnotes = props.form.body.replaceAll(/.*?<\/footnote>/g, '')
+ const cleanFootnotes = props.form.body.replaceAll(/(.*?)<\/footnote>/g, '')
const leadText = cleanFootnotes.replaceAll(/<\/?[^>]+(>|$)/gi, ' ')
return shorten(leadText, DESCRIPTION_MAX_LENGTH).trim()
}
diff --git a/src/components/_shared/SolidSwiper/Swiper.module.scss b/src/components/_shared/SolidSwiper/Swiper.module.scss
index 78d205e2..f66de2fc 100644
--- a/src/components/_shared/SolidSwiper/Swiper.module.scss
+++ b/src/components/_shared/SolidSwiper/Swiper.module.scss
@@ -8,18 +8,6 @@
}
}
-.unswiped {
- width: 100%;
- margin: 2rem 0;
- margin-bottom: 6rem;
- padding-bottom: 2rem;
- display: block;
-
- h2 {
- text-align: center;
- }
-}
-
.Swiper {
display: block;
margin: 2rem 0;
diff --git a/src/graphql/client/core.ts b/src/graphql/client/core.ts
index 9c083e86..bbfa00f4 100644
--- a/src/graphql/client/core.ts
+++ b/src/graphql/client/core.ts
@@ -1,6 +1,5 @@
import type {
Author,
- AuthorFollowsResult,
CommonResult,
FollowingEntity,
LoadShoutsOptions,
@@ -134,7 +133,7 @@ export const apiClient = {
slug?: string
author_id?: number
user?: string
- }): Promise => {
+ }): Promise => {
const response = await publicGraphQLClient.query(authorFollows, params).toPromise()
return response.data.get_author_follows
},
diff --git a/src/graphql/query/core/author-follows.ts b/src/graphql/query/core/author-follows.ts
index 9d46ea2c..31924246 100644
--- a/src/graphql/query/core/author-follows.ts
+++ b/src/graphql/query/core/author-follows.ts
@@ -3,6 +3,7 @@ import { gql } from '@urql/core'
export default gql`
query GetAuthorFollows($slug: String, $user: String, $author_id: Int) {
get_author_follows(slug: $slug, user: $user, author_id: $author_id) {
+ error
authors {
id
slug