From d8505f4469e9940528dd1f9ccd9fa2d0e41f3fda Mon Sep 17 00:00:00 2001 From: discomrade <83621080+discomrade@users.noreply.github.com> Date: Sun, 16 Jun 2024 14:43:25 +0000 Subject: [PATCH] [tag_history] prevent tag aliasing for correctness and huge performance improvement --- ext/tag_history/theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/tag_history/theme.php b/ext/tag_history/theme.php index 7f428ff4..93a7c5fe 100644 --- a/ext/tag_history/theme.php +++ b/ext/tag_history/theme.php @@ -135,9 +135,9 @@ class TagHistoryTheme extends Themelet $th = new TagHistory(); $pt = $th->get_previous_tags($image_id, $current_id); if ($pt) { - $previous_tags = Tag::explode($pt["tags"]); + $previous_tags = explode(" ", $pt["tags"]); } - $current_tags = Tag::explode($current_tags); + $current_tags = explode(" ", $current_tags); if ($pt) { $tags = array_unique(array_merge($current_tags, $previous_tags)); sort($tags);