[COMPONENT][Tag] We don't always have information about if a tag is canonical

This commit is contained in:
Diogo Peralta Cordeiro 2021-12-10 02:39:19 +00:00
parent dcc37b055d
commit 0c11fe413c
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0

View File

@ -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;