This is ready for testing on crust.piefed.social. I’ve made two testing posts in the testing community

In the API they show up as extra data on a post. For example here https://crust.piefed.social/api/alpha/post/list?community_name=test%40crust.piefed.social you’ll see this for event posts:

GtQa90oNvDcKyW5.png

and this for poll posts:

RQIMWGmG1aQkUu5.png

Other types of post will not have that data present, not even as an empty object or null. Let me know if that causes you problems.

As always, the full API spec is at https://crust.piefed.social/api/alpha/swagger including how to add or edit those types of post. It’s the same data structure as getting a post.

  • Rimu@piefed.socialOPM
    link
    fedilink
    English
    arrow-up
    2
    ·
    27 days ago

    Oops, forgot to add an endpoint for voting on a poll. Added one now!

    POST api/alpha/post/poll_vote