Release v0.3.1
- Feed bounded context with DDD implementation (Phases 1-5) - Domain event handlers for cross-context coordination - Fix Blossom media upload setting persistence - Fix wallet connection persistence on page reload - New branding assets and icons - Vitest testing infrastructure with 151 domain model tests - Help page scaffolding - Keyboard navigation provider 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { userIdToPubkey } from '@/lib/pubkey'
|
||||
import { Pubkey } from '@/domain'
|
||||
import { useFollowList } from '@/providers/FollowListProvider'
|
||||
import { UserRoundCheck } from 'lucide-react'
|
||||
import { useMemo } from 'react'
|
||||
@@ -10,7 +10,7 @@ export default function FollowingBadge({ pubkey, userId }: { pubkey?: string; us
|
||||
const isFollowing = useMemo(() => {
|
||||
if (pubkey) return followingSet.has(pubkey)
|
||||
|
||||
return userId ? followingSet.has(userIdToPubkey(userId)) : false
|
||||
return userId ? followingSet.has(Pubkey.tryFromString(userId)?.hex ?? userId) : false
|
||||
}, [followingSet, pubkey, userId])
|
||||
|
||||
if (!isFollowing) return null
|
||||
|
||||
Reference in New Issue
Block a user