API 调用未返回标签

当我搜索主题列表时(例如 /c/10/l/latest.json),在使用管理员账户时可以看到每个主题的标签。然而,在使用普通用户账户时,标签却是空的。

是否有设置阻止普通用户查看标签?

如果标签对普通用户不可见,它们将不会显示。否则,应该没问题。例如,在这里查看元论坛上的三个最新文档主题:

○ → curl -s https://meta.discourse.org/c/documentation/10/l/latest.json | jq '.topic_list.topics[range(3)] | [.fancy_title, .tags]'
[
  "创建并共享配色方案",
  [
    {
      "id": 478,
      "name": "how-to",
      "slug": "how-to"
    }
  ]
]
[
  "创建并共享字体主题组件",
  [
    {
      "id": 478,
      "name": "how-to",
      "slug": "how-to"
    },
    {
      "id": 820,
      "name": "theme-guides",
      "slug": "theme-guides"
    }
  ]
]
[
  "开发 Discourse 插件 - 第 6 部分 - 添加验收测试",
  [
    {
      "id": 484,
      "name": "tutorial",
      "slug": "tutorial"
    },
    {
      "id": 274,
      "name": "plugin-guides",
      "slug": "plugin-guides"
    },
    {
      "id": 58,
      "name": "testing",
      "slug": "testing"
    }
  ]
]

谢谢回复。那么我们如何让它对普通用户可见呢?

默认情况下,标签对匿名用户可见。需要显式隐藏它们。