Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Giraffaman committed Mar 23, 2024
1 parent 71fa19d commit faadec7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ext/auto_tagger/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit faadec7

Please sign in to comment.