Fix route issue
This commit is contained in:
@@ -19,7 +19,7 @@ const announcementSchema = z.object({
|
|||||||
softwareVersion: z.string().optional(),
|
softwareVersion: z.string().optional(),
|
||||||
userCount: z.number().optional(),
|
userCount: z.number().optional(),
|
||||||
postCount: z.number().optional(),
|
postCount: z.number().optional(),
|
||||||
capabilities: z.array(z.enum(['handles', 'gossip', 'relay', 'search'])).optional(),
|
capabilities: z.array(z.enum(['handles', 'gossip', 'relay', 'search', 'interactions'])).optional(),
|
||||||
timestamp: z.string().optional(),
|
timestamp: z.string().optional(),
|
||||||
signature: z.string().optional(),
|
signature: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const nodeInfoSchema = z.object({
|
|||||||
softwareVersion: z.string().optional(),
|
softwareVersion: z.string().optional(),
|
||||||
userCount: z.number().optional(),
|
userCount: z.number().optional(),
|
||||||
postCount: z.number().optional(),
|
postCount: z.number().optional(),
|
||||||
capabilities: z.array(z.enum(['handles', 'gossip', 'relay', 'search'])).optional(),
|
capabilities: z.array(z.enum(['handles', 'gossip', 'relay', 'search', 'interactions'])).optional(),
|
||||||
lastSeenAt: z.string().optional(),
|
lastSeenAt: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { useAuth } from '@/lib/contexts/AuthContext';
|
|||||||
import { useToast } from '@/lib/contexts/ToastContext';
|
import { useToast } from '@/lib/contexts/ToastContext';
|
||||||
import { VideoEmbed } from '@/components/VideoEmbed';
|
import { VideoEmbed } from '@/components/VideoEmbed';
|
||||||
import BlurredVideo from '@/components/BlurredVideo';
|
import BlurredVideo from '@/components/BlurredVideo';
|
||||||
import { formatFullHandle } from '@/lib/utils/handle';
|
import { formatFullHandle, NODE_DOMAIN } from '@/lib/utils/handle';
|
||||||
|
|
||||||
// Component for link preview image that hides on error
|
// Component for link preview image that hides on error
|
||||||
function LinkPreviewImage({ src, alt }: { src: string; alt: string }) {
|
function LinkPreviewImage({ src, alt }: { src: string; alt: string }) {
|
||||||
@@ -250,8 +250,8 @@ export function PostCard({ post, onLike, onRepost, onComment, onDelete, onHide,
|
|||||||
if (post.author.handle.includes('@')) {
|
if (post.author.handle.includes('@')) {
|
||||||
return post.author.handle;
|
return post.author.handle;
|
||||||
}
|
}
|
||||||
// If this is a swarm post, append the node domain
|
// If this is a swarm post from a DIFFERENT node, append the node domain
|
||||||
if (post.nodeDomain) {
|
if (post.nodeDomain && post.nodeDomain !== NODE_DOMAIN) {
|
||||||
return `${post.author.handle}@${post.nodeDomain}`;
|
return `${post.author.handle}@${post.nodeDomain}`;
|
||||||
}
|
}
|
||||||
// Local user
|
// Local user
|
||||||
|
|||||||
Reference in New Issue
Block a user