Add more clarity for why the -1 decision was made

Co-authored-by: liamwhite <liamwhite@users.noreply.github.com>
This commit is contained in:
MareStare 2025-03-18 00:07:45 +02:00 committed by GitHub
parent b2897187ab
commit db54e1be3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@ defmodule Philomena.Autocomplete.Generator do
// If >=0 then this tag is canonical and the `meta` is the number of images with this tag // If >=0 then this tag is canonical and the `meta` is the number of images with this tag
// //
// If <0 then the following calculation: `-meta - 1` and will give the index // If <0 then `-meta - 1` (to allow 0 as a possibility for the target) will give the index
// of a `tag_reference` for the canonical tag aliased by this one // of a `tag_reference` for the canonical tag aliased by this one
// in the `primary_references` array // in the `primary_references` array
int32_t meta; int32_t meta;