Fix assignee filter bug in List

This commit is contained in:
2026-03-29 18:58:34 +02:00
parent 9e8c37564f
commit 13b4c4b651
22 changed files with 939 additions and 555 deletions

View File

@@ -3,6 +3,7 @@ package cmd
import (
"axolotl/db"
"axolotl/output"
"axolotl/service"
"fmt"
"os"
@@ -17,7 +18,7 @@ var inboxCmd = &cobra.Command{
fmt.Fprintln(os.Stderr, err)
return
}
userID, err := d.GetUserByUsername(db.GetCurrentUser())
userID, err := d.GetUserByUsername(cfg.GetUser())
if err != nil {
fmt.Fprintln(os.Stderr, err)
return
@@ -26,7 +27,8 @@ var inboxCmd = &cobra.Command{
output.PrintNodes(cmd.OutOrStdout(), nil, jsonFlag)
return
}
if nodes, err := d.ListNodes(db.ListFilter{MentionsUser: userID}); err == nil {
svc := service.NewSQLiteNodeService(d.DB, cfg.GetUser())
if nodes, err := svc.List(service.WithMentions(userID)); err == nil {
output.PrintNodes(cmd.OutOrStdout(), nodes, jsonFlag)
}
},