this post was submitted on 11 Sep 2023
6 points (100.0% liked)

Photon

2 readers
8 users here now

The community for the Photon Lemmy client.

https://photon.xylight.dev

founded 1 year ago
MODERATORS
 

I could try and find a way to condense crossposts in photon into single posts in your home feed.

(For example, if you see post x, and then later see post y, which is a crosspost of x, it'll be hidden. A little crossposts icons will be visible at the bottom of post x.)

I can't find an easy way to do this without a crossposts property in PostView though.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago

To be able to see what a post is crossposted to, the API returns those things.

When getting a single post, it returns a PostResponse, which includes a list of crossposts.

When getting posts in a list though, it only gives me a list of PostViews. This doesn't have the crossposts property I need, so I can't tell what this has been crossposted to.

A solution would be a property like "crosspost_ids" with a list of post IDs. This would still work.