0
0
mirror of https://github.com/mrusme/neonmodem.git synced 2025-06-30 22:18:39 -04:00

Fix #31, bugfix for missing comments in Lemmy

This commit is contained in:
マリウス 2024-07-31 18:43:16 -05:00
parent 666e201dcc
commit 683f07fd79
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F

View File

@ -272,7 +272,10 @@ func (sys *System) LoadPost(p *post.Post) error {
// }
resp, err := sys.client.Comments(context.Background(), lemmy.GetComments{
PostID: lemmy.NewOptional[int64](pid),
PostID: lemmy.NewOptional[int64](pid),
MaxDepth: lemmy.NewOptional[int64](8),
Sort: lemmy.NewOptional[lemmy.CommentSortType](lemmy.CommentSortTypeHot),
Type: lemmy.NewOptional[lemmy.ListingType](lemmy.ListingTypeAll),
})
if err != nil {
return err