Fix community ban causing panic
This commit is contained in:
parent
df88e2a7aa
commit
aa337e4eed
4
main.go
4
main.go
@ -289,6 +289,7 @@ func commentReplyWorker(ctx context.Context, c *lemmy.Client, rs *store.Queries,
|
|||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("Error while trying to edit comment").Err(err).Send()
|
log.Warn("Error while trying to edit comment").Err(err).Send()
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the reply ID for the post/comment in the database
|
// Set the reply ID for the post/comment in the database
|
||||||
@ -299,6 +300,7 @@ func commentReplyWorker(ctx context.Context, c *lemmy.Client, rs *store.Queries,
|
|||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("Error setting the reply ID of the new comment").Err(err).Send()
|
log.Warn("Error setting the reply ID of the new comment").Err(err).Send()
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("Edited comment").
|
log.Info("Edited comment").
|
||||||
@ -313,6 +315,7 @@ func commentReplyWorker(ctx context.Context, c *lemmy.Client, rs *store.Queries,
|
|||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("Error while trying to create new comment").Err(err).Send()
|
log.Warn("Error while trying to create new comment").Err(err).Send()
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the reply ID for the post/comment in the database
|
// Set the reply ID for the post/comment in the database
|
||||||
@ -323,6 +326,7 @@ func commentReplyWorker(ctx context.Context, c *lemmy.Client, rs *store.Queries,
|
|||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("Error setting the reply ID of the new comment").Err(err).Send()
|
log.Warn("Error setting the reply ID of the new comment").Err(err).Send()
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("Created new comment").
|
log.Info("Created new comment").
|
||||||
|
Loading…
Reference in New Issue
Block a user