Skip to content

Commit

Permalink
Fix #31, bugfix for missing comments in Lemmy
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Jul 31, 2024
1 parent 666e201 commit 683f07f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion system/lemmy/lemmy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 683f07f

Please sign in to comment.