diff --git a/src/components/Views/Author/Author.tsx b/src/components/Views/Author/Author.tsx
index a21cebcc..c7515382 100644
--- a/src/components/Views/Author/Author.tsx
+++ b/src/components/Views/Author/Author.tsx
@@ -29,8 +29,6 @@ import stylesArticle from '../../Article/Article.module.scss'
import styles from './Author.module.scss'
type Props = {
- shouts: Shout[]
- author: Author
authorSlug: string
}
export const PRERENDERED_ARTICLES_COUNT = 12
@@ -39,8 +37,8 @@ const LOAD_MORE_PAGE_SIZE = 9
export const AuthorView = (props: Props) => {
const { t } = useLocalize()
const { loadSubscriptions } = useFollowing()
- const { sortedArticles } = useArticlesStore({ shouts: props.shouts })
- const { authorEntities } = useAuthorsStore({ authors: [props.author] })
+ const { sortedArticles } = useArticlesStore()
+ const { authorEntities } = useAuthorsStore()
const { page: getPage, searchParams } = useRouter()
const [isLoadMoreButtonVisible, setIsLoadMoreButtonVisible] = createSignal(false)
const [isBioExpanded, setIsBioExpanded] = createSignal(false)
@@ -200,10 +198,10 @@ export const AuthorView = (props: Props) => {
-
+
{t('All posts rating')}
-
+
diff --git a/src/pages/author.page.tsx b/src/pages/author.page.tsx
index 39c4dc28..e23f92d3 100644
--- a/src/pages/author.page.tsx
+++ b/src/pages/author.page.tsx
@@ -56,17 +56,11 @@ export const AuthorPage = (props: PageProps) => {
onCleanup(() => resetSortedArticles())
- const usePrerenderedData = props.author?.slug === slug()
-
return (
}>
-
+
diff --git a/src/utils/getImageUrl.ts b/src/utils/getImageUrl.ts
index 7b8b56dc..bc3c9073 100644
--- a/src/utils/getImageUrl.ts
+++ b/src/utils/getImageUrl.ts
@@ -15,17 +15,17 @@ export const getImageUrl = (
src: string,
options: { width?: number; height?: number; noSizeUrlPart?: boolean } = {},
) => {
- if (!src.includes('discours.io') && src.includes('http')) {
- return src
- }
- const filename = src.toLowerCase().split('/').pop()
- const ext = filename.split('.').pop()
- const isAudio = ext in ['wav', 'mp3', 'ogg', 'aif', 'flac']
- const base = isAudio ? cdnUrl : `${thumborUrl}/unsafe/`
- const suffix = isAudio || options.noSizeUrlPart ? '' : getSizeUrlPart(options)
- const subfolder = isAudio ? 'audio' : 'image'
+ if (!src.includes('discours.io') && src.includes('http')) {
+ return src
+ }
+ const filename = src.toLowerCase().split('/').pop()
+ const ext = filename.split('.').pop()
+ const isAudio = ext in ['wav', 'mp3', 'ogg', 'aif', 'flac']
+ const base = isAudio ? cdnUrl : `${thumborUrl}/unsafe/`
+ const suffix = isAudio || options.noSizeUrlPart ? '' : getSizeUrlPart(options)
+ const subfolder = isAudio ? 'audio' : 'image'
- return `${base}${suffix}production/${subfolder}/${filename}`
+ return `${base}${suffix}production/${subfolder}/${filename}`
}
export const getOpenGraphImageUrl = (