mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 11:01:20 +01:00
fix: #13894, buildCategoryLabel helper checks fa-nbb-none
This commit is contained in:
@@ -303,7 +303,7 @@ Mocks.category = async (actors) => {
|
||||
slug: `${preferredUsername}@${hostname}`,
|
||||
description: summary,
|
||||
descriptionParsed: posts.sanitize(activitypub.helpers.renderEmoji(summary || '', tag)),
|
||||
icon: backgroundImage ? 'fa-none' : 'fa-comments',
|
||||
icon: backgroundImage ? 'fa-nbb-none' : 'fa-comments',
|
||||
color: '#fff',
|
||||
bgColor,
|
||||
backgroundImage,
|
||||
|
||||
@@ -131,6 +131,9 @@ function modifyCategory(category, fields) {
|
||||
|
||||
if (hasField('icon')) {
|
||||
category.icon = category.icon || 'hidden';
|
||||
if (category.icon === 'fa-none') {
|
||||
category.icon = 'fa-nbb-none';
|
||||
}
|
||||
}
|
||||
|
||||
if (hasField('post_count')) {
|
||||
|
||||
Reference in New Issue
Block a user