Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Could we consider adding an option for users to choose whether their posts can be viewed by everyone (including anonymous users) or only by logged-in users when they publish a post?

未关闭
#1,446 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
领域
authorization

调研方向

未指定任何文件、测试或入口点。首先定位当前如何处理帖子可见性和已登录用户的访问,然后在实现之前明确权限模型以及受影响的帖子视图。完成的标准是:作者发布时可以选择匿名可见或仅对已登录用户可见,并且访问权限遵循该选择。

由索引模型根据 Issue 内容生成。

描述

new-feature

Dear Teacher,

Could we consider adding a feature that allows users to choose whether their posts are visible to everyone (including anonymous viewers) or only to logged-in users? This option would help control the visibility of posts.

The purpose is to manage the privacy of certain posts and, by regulating user registration, maintain the health and professionalism of the community.


answer老师好:
是否可以考虑新增功能, 用户在发帖的时候,可以选择所有人(包含匿名)可以浏览,或者 只有用户登录后可以浏览,这样的选项,来控制阅读范围。
目的是为了控制某些帖子的隐私性,通过控制用户注册的方式,来管理社区的健康和发帖的专业性

主要语言
Go
星标
15.7k
派生
1.4k
平均合并
1 天 20 小时
30 天内合并 PR
6

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/answer 的其他 Issue

查看 apache/answer 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。