From 0c11fe413c94db19aeef2a8cd46d975735f6f46e Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Fri, 10 Dec 2021 02:39:19 +0000 Subject: [PATCH] [COMPONENT][Tag] We don't always have information about if a tag is canonical --- components/Tag/Tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Tag/Tag.php b/components/Tag/Tag.php index 94eb7ee8ae..781cdc5ebc 100644 --- a/components/Tag/Tag.php +++ b/components/Tag/Tag.php @@ -81,7 +81,7 @@ class Tag extends Component 'tag' => $tag, 'canonical' => $canonical_tag, 'note_id' => $note->getId(), - 'use_canonical' => $extra_args['tag_use_canonical'], + 'use_canonical' => $extra_args['tag_use_canonical'] ?? false, ])); Cache::pushList("tag-{$canonical_tag}", $note); $processed_tags = true;