fix: don't redirect to /u/{handle}/ on private (multi-user) instances
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
import ActivityFeed from '../components/ActivityFeed.svelte';
|
||||
import { readShardHandles } from '../lib/manifest';
|
||||
import { readShardHandles, isInstancePrivate } from '../lib/manifest';
|
||||
|
||||
const base = import.meta.env.BASE_URL;
|
||||
const shards = readShardHandles();
|
||||
const isSingleUser = shards.length === 1;
|
||||
const isSingleUser = shards.length === 1 && !isInstancePrivate();
|
||||
const singleHandle = isSingleUser ? shards[0].handle : null;
|
||||
---
|
||||
{isSingleUser ? (
|
||||
|
||||
Reference in New Issue
Block a user