Compare commits

...
Author SHA1 Message Date
François-X. T. ab86c47661 chore: fmt 2026-07-03 12:55:43 -04:00
François-X. T. 000b7039b7 fix(labrinth): include SharedInstanceInvite notifications for ws 2026-07-03 12:42:18 -04:00
@@ -130,7 +130,8 @@ pub async fn ws_init(
)?)
.await;
let unread_server_invites = DBNotification::get_many_user_exposed_on_site(
let unread_launcher_invites =
DBNotification::get_many_user_exposed_on_site(
user_id.into(),
&**pool,
&redis,
@@ -142,11 +143,12 @@ pub async fn ws_init(
&& matches!(
&notification.body,
NotificationBody::ServerInvite { .. }
| NotificationBody::SharedInstanceInvite { .. }
)
})
.map(Notification::from);
for notification in unread_server_invites {
for notification in unread_launcher_invites {
let _ = session.text(serde_json::to_string(&notification)?).await;
}