Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com

fix: correct DocumentURI filter format in ListComments

+3 -1
+3 -1
internal/atproto/xrpc/client.go
··· 345 345 if err := json.Unmarshal(r.Value, &comment); err != nil { 346 346 continue 347 347 } 348 - if documentRKey != "" && comment.DocumentURI != "diffdown://document/"+documentRKey { 348 + // Filter by documentRKey: at://{did}/com.diffdown.document/{rkey} 349 + expectedSuffix := "/com.diffdown.document/" + documentRKey 350 + if documentRKey != "" && !strings.HasSuffix(comment.DocumentURI, expectedSuffix) { 349 351 continue 350 352 } 351 353 comment.URI = r.URI