this repo has no description
0
fork

Configure Feed

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

logging for deletes

+6 -1
+6 -1
consumer.go
··· 89 89 90 90 var post apibsky.FeedPost 91 91 if err := json.Unmarshal(event.Commit.Record, &post); err != nil { 92 - return fmt.Errorf("failed to unmarshal post: %w", err) 92 + // ignore this 93 + return nil 93 94 } 94 95 95 96 // we only care about posts that have parents which are replies ··· 126 127 if err := json.Unmarshal(event.Commit.Record, &post); err != nil { 127 128 // ignore this 128 129 return nil 130 + } 131 + 132 + if event.Did == "did:plc:dadhhalkfcq3gucaq25hjqon" { 133 + slog.Info("delete event received", "post", fmt.Sprintf("%+v", post)) 129 134 } 130 135 131 136 // we only care about posts that have parents which are replies