What is the best way to mark a post as read from the API?

Hello! I'm the developer of Summit, one of the Lemmy apps.

I want to be able to mark a post as read using an API call.

I understand that fetching the post itself using the account JWT will mark the post as read for that account, however this also fetches a lot of data.

Trying to be as server friendly as possible, what is the least resource intensive way to mark a post as read and nothing else?

Also if there is a better place to ask this, please let me know.

22 points · 3 comments · view on lemmy.world

3 Comments

nachtigall@feddit.de · 5 pts · 3y (1 reply)

Also if there is a better place to ask this, please let me know.

I recently learned there is !lemmydev@lemm.ee

idunnololz_test@lemmy.ml · 4 pts · 3y

Oh wow. This looks perfect for this question. Thanks!

1rre@discuss.tchncs.de · 1 pts · 3y

If it comes to it then there's nothing stopping you adding an endpoint for that yourself...