max comments appears to be 50? "fetch" (search?) limit is 50.
blawsybogsy
nvm i worked it out: resolveObject is the endpoint to chase in the docs.
(my post has URLs autocorrected to URLS, strange)
ah, Lenny. I really love Lenny.
actually it would be very helpful to know the maximum value for any of the 'number' parameters in the API.
made some progress. mainly spent time working on getting the sorting types and listing types going, so you can cycle between them on the go. v basic display of post details in byline, etc., but that can easily be spruced up by pulling code from mastodon.el. + markdown rendered posts/comments, uwu!
https://codeberg.org/martianh/lem. the readme has a rough todo list.
logging in and loading lem as package is still pretty rough, or kinda broken. but i'll get it sorted soon.
still gotta build a comments tree also, that's a biggie.
so "path" is a decimal separated list of comment ids? docs say nothing, but it looks like that.
thanks for the clear info. i think i'd missed the All type_. now off to find the path attribute.
can you see comments that way? you just subscribe to communities i imagine?
https://codeberg.org/martianh/lem has some basics, functions returning plain JSON. i didn't do any auth, but if its oauth and so similar to mastodon.el, we cd also just move its auth code into the fedi.el library. and fedi-http.el is already set up to handle auth tokens.
discovering lemmy's query parameters is quite a pain for me, as i don't know rust.
thanks for the link. so https://github.com/LemmyNet/lemmy/blob/main/src/api_routes_http.rs shows the paths and params, i tried them in a rest client and it's no too hard to follow.
the mastodon.el http layer isn't great, but it could be v quickly adapted for this case.
i'm building a client, happy to help if i can, also to receive help! main issues i have had so far is how to actually use a number of the methods' parameters, like limit (whats the max value?), page (how does pagination actually work?), etc. so far i have been storing any useful info about the API (like the valid values for a given type) in my own lists then querying them in my code.