-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
with PostID
not filtered by given post ID
#1
Comments
Sorry for the late response, it was new year and I didn't have much time. I'll try to figure out what's going on here and get back to you, thanks. |
Interestingly, it is sending |
The way Lemmy's UI seems to do it is they use |
Maybe @dessalines might be able to help here? Would be cool to get this working, currently having a new Lemmy client in the works and this library saved my poor ass from having to implement all this on my own. :-) Specifically, quote:
|
https://join-lemmy.org/api/classes/LemmyHttp.html#getPost @Arsen6331 the current |
I looked at the LemmyHttp docs, and neither |
Ah my bad, that must be showing the RC unfortunately. Here you go: https://github.com/LemmyNet/lemmy-js-client/blob/0.16.4/src/interfaces/api/post.ts#L29 |
The conversion done for this library is only partially automated, so if the API changes this much, it's going to become very difficult to maintain very quickly. To solve that, I'm working on a completely automated converter right now that I will use to automatically generate bindings for the latest release once it's done (should be pretty soon). |
Is there a quickfix that can be used up until then however? |
You can try adding a |
The bindings are now completely automatically generated for v0.16.7. Can you try them and see if it fixes your issue? @mrusme The You have to use |
@Arsen6331 it seems that now types (e.g.
|
Ah, I forgot to use the type I created. Can you try now? It should be fixed. |
|
It seems the internal time.Time parsing doesn't work yet:
That's what I'm doing: resp, err := sys.client.Posts(context.Background(), types.GetPosts{
Type: types.NewOptional(types.ListingTypeSubscribed),
Sort: types.NewOptional(types.SortTypeNew),
Limit: types.NewOptional(int64(50)),
}) |
Just fixed that, should be working now |
Awesome work! Can retrieve the correct comments now. 👍🏼 Very nice, thank you very much! |
I'm trying to retrieve all comments for a specific post, hence I've been trying out different sorts of variations of this code:
The
pid
is the correct post ID, yet the comments that I'm getting back seem to be simply the listing of all new local comments. I'm not quite sure what's going on there as it seems to me that changing different parameters won't alter the server's response in any way.Maybe you might have idea of what's going on? I might very well just be holding it wrong.
The text was updated successfully, but these errors were encountered: