DEV: Add slug parameter to hashtag-decorator (#27917)
In order to facilitate discourse-tag-icons and discourse-category-icons to render icons for post content, we need to provide an additional slug parameter here
This commit is contained in:
parent
cf5174da69
commit
4d64205eef
|
@ -100,6 +100,7 @@ export function decorateHashtags(element, site) {
|
||||||
.generateIconHTML({
|
.generateIconHTML({
|
||||||
icon: site.hashtag_icons[hashtagType],
|
icon: site.hashtag_icons[hashtagType],
|
||||||
id: hashtagEl.dataset.id,
|
id: hashtagEl.dataset.id,
|
||||||
|
slug: hashtagEl.dataset.slug,
|
||||||
})
|
})
|
||||||
.trim();
|
.trim();
|
||||||
iconPlaceholderEl.replaceWith(domFromString(hashtagIconHTML)[0]);
|
iconPlaceholderEl.replaceWith(domFromString(hashtagIconHTML)[0]);
|
||||||
|
|
Loading…
Reference in New Issue