this post was submitted on 26 Jun 2023
1 points (100.0% liked)

Lemmy Code / App Technical

92 readers
1 users here now

The code and application behind Lemmy. Beta testing new releases, API coding, custom changes, adding new features, developers

See also: !lemmyperformance@lemmy.ml community, it's not always clear which one to put a topic into. "lemmycode" I'm trying to be more into actual code change proposals.

!lemmydev@lemm.ee

founded 2 years ago
MODERATORS
 

I'm working on lemmy-ui-svelte frontend/client application. This code page in particular: https://github.com/ando818/lemmy-ui-svelte/blob/main/src/routes/post/%5Bid%5D/%2Bpage.server.js

Testing the same API against SJW server with two different postings that both have comments:

Posting 372144 returns nothing

curl "https://sh.itjust.works/api/v3/comment/list?post_id=372144&limit=300&sort=New"

Posting 123406 returns comments

curl "https://sh.itjust.works/api/v3/comment/list?post_id=123406&limit=300&sort=New"

Am I making some kind of mistake here? Is it because the problematic posting community is from a federated instance and not local to SJW? Thank you.

EDIT: ok, adding &type_=All to the parameters gave the comments on both posts.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here