X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi%2Fsrc%2Flocal_user%2Fnotifications%2Funread_count.rs;h=93307ed542835c73936e5380fe7abfa55d166b4a;hb=9c3efe32e7b2ef7978b7957eac10691beb551dde;hp=cdab17bdefbfb83db326da5ff2d8827cea97e3db;hpb=becb8b4f66bdacca23b0b169e07d845afcb3d204;p=lemmy.git diff --git a/crates/api/src/local_user/notifications/unread_count.rs b/crates/api/src/local_user/notifications/unread_count.rs index cdab17bd..93307ed5 100644 --- a/crates/api/src/local_user/notifications/unread_count.rs +++ b/crates/api/src/local_user/notifications/unread_count.rs @@ -4,8 +4,8 @@ use lemmy_api_common::{ person::{GetUnreadCount, GetUnreadCountResponse}, utils::{blocking, get_local_user_view_from_jwt}, }; -use lemmy_db_views::structs::{CommentView, PrivateMessageView}; -use lemmy_db_views_actor::structs::PersonMentionView; +use lemmy_db_views::structs::PrivateMessageView; +use lemmy_db_views_actor::structs::{CommentReplyView, PersonMentionView}; use lemmy_utils::{error::LemmyError, ConnectionId}; use lemmy_websocket::LemmyContext; @@ -26,7 +26,7 @@ impl Perform for GetUnreadCount { let person_id = local_user_view.person.id; let replies = blocking(context.pool(), move |conn| { - CommentView::get_unread_replies(conn, person_id) + CommentReplyView::get_unread_replies(conn, person_id) }) .await??;