diff --git a/main.go b/main.go index 9b36b2a..5821030 100644 --- a/main.go +++ b/main.go @@ -122,6 +122,10 @@ func commentWorker(ctx context.Context, c *lemmy.WSClient, replyCh chan<- replyJ continue } + if !cr.CommentView.Community.Local { + continue + } + if _, ok := repliedIDs[item{comment, cr.CommentView.Comment.ID}]; ok { continue } @@ -164,6 +168,10 @@ func commentWorker(ctx context.Context, c *lemmy.WSClient, replyCh chan<- replyJ continue } + if !pr.PostView.Community.Local { + continue + } + if _, ok := repliedIDs[item{post, pr.PostView.Post.ID}]; ok { continue }