switch mentions from _inbox tags to mentions relation
This commit is contained in:
11
cmd/inbox.go
11
cmd/inbox.go
@@ -17,7 +17,16 @@ var inboxCmd = &cobra.Command{
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
return
|
||||
}
|
||||
if nodes, err := d.ListNodes(db.ListFilter{TagPrefixes: []string{"_inbox::" + db.GetCurrentUser()}}); err == nil {
|
||||
userID, err := d.GetUserByUsername(db.GetCurrentUser())
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
return
|
||||
}
|
||||
if userID == "" {
|
||||
output.PrintNodes(cmd.OutOrStdout(), nil, jsonFlag)
|
||||
return
|
||||
}
|
||||
if nodes, err := d.ListNodes(db.ListFilter{MentionsUser: userID}); err == nil {
|
||||
output.PrintNodes(cmd.OutOrStdout(), nodes, jsonFlag)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user