From faadec7ebff7b2b7a41ae59ba056b3ec3d70ffe3 Mon Sep 17 00:00:00 2001 From: Giraffaman Date: Sun, 24 Mar 2024 00:11:14 +0100 Subject: [PATCH] --- ext/auto_tagger/main.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/auto_tagger/main.php b/ext/auto_tagger/main.php index f58be08f2..6a4315b92 100644 --- a/ext/auto_tagger/main.php +++ b/ext/auto_tagger/main.php @@ -162,14 +162,17 @@ public function onTagSet(TagSetEvent $event): void } $results = $this->apply_auto_tags($event->new_tags); if (!empty($results)) { + # do we need this? + $event->new_tags = $results; + error_log("auto-tagger: results:"); foreach($results as $i) { error_log($i); } error_log("auto-tagger: checking results for metatags..."); # need to check tags again for metatags - foreach ($tags as $tag) { - if ((!str_contains($tag, ':')) && (!str_contains($tag, '='))) { + foreach ($results as $r) { + if ((!str_contains($r, ':')) && (!str_contains($r, '='))) { $event->new_tags[] = $r; error_log("auto-tagger: ".$r." is definitely a normal tag."); continue;