An atproto PDS written in Go
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: skip blobs with empty or invalid CIDs (#61)

Instead of returning an error when encountering an empty or invalid CID,
log the error and continue processing the remaining blobs.

authored by

Luna Seemann and committed by
GitHub
8f9be99c efb83a84

+5 -1
+5 -1
server/handle_sync_list_blobs.go
··· 59 59 60 60 var cstrs []string 61 61 for _, b := range blobs { 62 + if len(b.Cid) == 0 { 63 + logger.Error("empty cid found", "blob", b) 64 + continue 65 + } 62 66 c, err := cid.Cast(b.Cid) 63 67 if err != nil { 64 68 logger.Error("error casting cid", "error", err) 65 - return helpers.ServerError(e, nil) 69 + continue 66 70 } 67 71 cstrs = append(cstrs, c.String()) 68 72 }