Skip non-local posts

This commit is contained in:
Elara 2023-05-04 12:48:39 -07:00
parent a303fd8205
commit a9cddb115f

View File

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