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:
parent
666e201dcc
commit
683f07fd79
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user