···4343 // Parse the AT URI
4444 const atUri = new AtUri(decodedUri)
45454646- // Validate it's a skeetlonger post
4747- if (atUri.collection !== 'app.skeetlonger.post') {
4848- setError("Invalid post URI - not a SkeetLonger post")
4646+ // Validate it's a bsky post
4747+ if (atUri.collection !== 'app.bsky.feed.post') {
4848+ setError("Invalid post URI - not a bsky post")
4949 setLoading(false)
5050 return
5151 }
52525353- // // We need to resolve the DID to find the user's PDS
5454- // const resolverAgent = new AtpAgent({ service: 'https://bsky.social' })
5555- // const didDoc = await resolverAgent.com.atproto.identity.resolveHandle({
5656- // handle: atUri.host
5757- // })
5858-5953 if (!isAtprotoDid(atUri.host)) {
6054 throw new Error("Not a valid DID identifier");
6155 }
···6357 const doc = await didDocumentResolver.resolve(atUri.host);
64586559 const pdsUrl = getPdsEndpoint(doc);
6666-6767- // // Get the PDS endpoint from the DID document
6868- // // For now, we'll need to make a separate call to get the service endpoint
6969- //const pdsUrl = `https://pds.minito.dev` // This should be resolved from the DID document
7070-7171- // Create an agent pointing to the user's PDS
6060+7261 if (!pdsUrl) {
7362 throw new Error("No PDS found");
7463 }
···7665 const fetchAgent = new AtpAgent({ service: pdsUrl })
77667867 // Fetch the record from their PDS
6868+ // This should be more involved, it should check a db, then something like constellation
6969+ // if neither has the record, then we hit the PDS.
7970 const recordResponse = await fetchAgent.com.atproto.repo.getRecord({
8071 repo: atUri.host,
8172 collection: atUri.collection,
···176167 marginBottom: '1rem',
177168 textAlign: 'left'
178169 }}>
179179- {post.value.post}
170170+ {post.value.text}
180171 </div>
181172182173 {/* Post Metadata */}
···202193 </p>
203194 </div>
204195 </div>
205205-206196207207-208197 <style>{`
209198 @keyframes spin {
210199 to { transform: rotate(360deg); }