mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 11:44:44 +08:00
943d8e0a97
- `site.json` now returns a list of group objects, not a `group_names` array (a6714e25
) - `c/1/show.json` now includes `custom_fields: {}`, even if no fields exist (b8bd0316
)
43 lines
1.6 KiB
JavaScript
43 lines
1.6 KiB
JavaScript
export default {
|
|
"/c/1/show.json": {
|
|
category: {
|
|
id: 1,
|
|
name: "bug",
|
|
color: "e9dd00",
|
|
text_color: "000000",
|
|
slug: "bug",
|
|
topic_count: 2030,
|
|
post_count: 13418,
|
|
description:
|
|
"A bug report means something is broken, preventing normal/typical use of Discourse. Do be sure to search prior to submitting bugs. Include repro steps, and only describe one bug per topic please.",
|
|
description_text:
|
|
"A bug report means something is broken, preventing normal/typical use of Discourse. Do be sure to search prior to submitting bugs. Include repro steps, and only describe one bug per topic please.",
|
|
topic_url: "/t/category-definition-for-bug/2",
|
|
read_restricted: false,
|
|
permission: null,
|
|
notification_level: null,
|
|
available_groups: [
|
|
"admins",
|
|
"discourse",
|
|
"everyone",
|
|
"moderators",
|
|
"staff",
|
|
"translators",
|
|
"trust_level_0",
|
|
"trust_level_1",
|
|
"trust_level_2",
|
|
"trust_level_3",
|
|
"trust_level_4"
|
|
],
|
|
auto_close_hours: null,
|
|
auto_close_based_on_last_post: false,
|
|
group_permissions: [{ permission_type: 1, group_name: "everyone" }],
|
|
position: 25,
|
|
cannot_delete_reason:
|
|
"Can't delete this category because it has 2030 topics. Oldest topic is <a href=\"https://localhost:3000/t/when-a-new-post-appears-in-a-topic-the-bookmark-isn-t-updated/39\">When a new post appears in a topic, the bookmark isn't updated</a>.",
|
|
allow_badges: true,
|
|
custom_fields: {}
|
|
}
|
|
}
|
|
};
|