detect-fix

This commit is contained in:
Untone 2024-01-31 18:46:34 +03:00
parent c234ab1c2b
commit 8caa4f823a

View File

@ -82,13 +82,9 @@ export const FollowingProvider = (props: { children: JSX.Element }) => {
createEffect(() => {
if (author()) {
console.debug('[context.following] author detect')
if (!subscriptions?.authors?.length && !subscriptions?.topics?.length) {
// && subscriptions.communites?.length
console.debug('[context.following] no subs detected')
console.debug('[context.following] author update detect')
fetchData()
}
}
})
const setFollowing = (what: FollowingEntity, slug: string, value = true) => {