Skip to content

Commit

Permalink
remove unnecessary settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Lhcfl committed Jul 16, 2024
1 parent 5518706 commit 4d3cf28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion javascripts/discourse/initializers/category-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default {
});
}

if (settings.render_category_icon_in_post && api.registerHashtagType) {
if (api.registerHashtagType) {
const site = api.container.lookup("service:site");
const dict = {};
for (const str of categoryThemeList) {
Expand Down
3 changes: 0 additions & 3 deletions settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ category_icon_list:
type: "list"
list_type: "simple"
description: 'Enter comma-delimited configuration for categories, in the format "slug,icon,color,match". Color can be in hex format (#123456) or left blank, then the default color for the category is used (same as the Badge color). If match is "partial" then the slug need only partially match the category-slug, otherwise an exact match is required'
render_category_icon_in_post:
default: true
description: "Show category icons in the post body"
svg_icons:
default: "question-circle"
type: "list"
Expand Down

0 comments on commit 4d3cf28

Please # to comment.