Make distinction between CommentReplies
and PostReplies
in /api/v3/user/unread_count
#3601
Open
4 tasks done
Labels
Requirements
Is your proposal related to a problem?
In getting the
unread_counts
for a user (the endpoints returns{ replies: int, mentions: int, private_messages: int }
, seelemmy/crates/api/src/local_user/notifications/unread_count.rs
Lines 23 to 28 in 1d38aad
Describe the solution you'd like.
It would be helpful to add a
post_replies
property to the returned object that shows the count for the amount of unread post replies a user has.Subsequently, this would alse mean that the
replies
property only counts the current user's unread comment replies.Describe alternatives you've considered.
Currently, for Voyager we're making the distinction after the data fetch, by iterating over all unread comments and determining whether a reply is to a comment or to a post, and tallying the unread amounts that way.
It would be far simpler to simply handle this on the BE, and add an additional count (and 'fix' the current
replies
count) for just 'post' replies.Additional context
No response
The text was updated successfully, but these errors were encountered: