Skip non-local posts
This commit is contained in:
parent
a303fd8205
commit
a9cddb115f
8
main.go
8
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user