George S. Baugh 3 роки тому
батько
коміт
1487f0d129
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      lib/Trog/SQLite/TagIndex.pm

+ 2 - 2
lib/Trog/SQLite/TagIndex.pm

@@ -84,8 +84,8 @@ sub build_index($data_obj,$posts=[]) {
         $post->{post_id} = $pids->{$post->{id}}{id};
     }
 
-    # Slap in the tags
-    my @tags = uniq map { @{$_->{tags}} } @$posts;
+    # Slap in the tags, plus the aclname in the event this is a series
+    my @tags = uniq map { @{$_->{tags}}, $_->{aclname} } @$posts;
     Trog::SQLite::bulk_insert($dbh,'tag', ['name'], 'IGNORE', @tags);
     #TODO restrict query to only the specific tags we care about
     my $t = $dbh->selectall_hashref("SELECT id,name FROM tag", 'name');