summaryrefslogtreecommitdiff
path: root/internal/queue/queue.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-01-03 09:58:43 +0200
committerPaul Buetow <paul@buetow.org>2025-01-03 09:58:43 +0200
commit5cacdd83fcd28e71f798cac628b5dd602fadef50 (patch)
tree19a53410a1c322ddceac975407f452fab890662d /internal/queue/queue.go
parent8479058ac8f362ae646dc7f1a29eaff7308b1005 (diff)
warn when there is no hashtag
Diffstat (limited to 'internal/queue/queue.go')
-rw-r--r--internal/queue/queue.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/internal/queue/queue.go b/internal/queue/queue.go
index 80f6dcd..33b5bf7 100644
--- a/internal/queue/queue.go
+++ b/internal/queue/queue.go
@@ -44,7 +44,16 @@ func queueEntries(args config.Args) error {
if err != nil {
return err
}
- if en.HasTag("ask") {
+
+ hasHashtags, err := en.HasHashtags()
+ if err != nil {
+ return err
+ }
+ if !hasHashtags {
+ if err := en.FileAction("Do you want to queue this despite there are no Hashtags?"); err != nil {
+ return err
+ }
+ } else if en.HasTag("ask") {
if err := en.FileAction("Do you want to queue this"); err != nil {
return err
}