feat(portal): 默认隐藏上传者邮箱 + 说明 noreply 来源#19
Merged
Merged
Conversation
The Maintainer address shown in the preview is read straight from the uploaded .deb's control file (dpkg publishes it into the APT index); it is not derived from the GitHub login, and OAuth already retrieves the user's verified emails via the user:email scope. Add a privacy control so uploaders aren't surprised to see an address: - New "don't publicly show my email" checkbox on the upload form, checked by default (zh-CN / en / ja). - When checked, the preview masks the Maintainer email, and the Worker forwards only the noreply form so the packages-repo Action records a noreply uploader email. Unchecking publishes the verified GitHub email as the recorded contact instead. - No new client_payload property (stays within the 10-key dispatch limit): the choice is expressed by reordering/filtering the existing emails array. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
预览里的
Maintainer: xxx <xxx@users.noreply.github.com>是直接读自上传的 .deb 的 control 文件(dpkg-scanpackages会把它发布进 APT 索引),不是登录推导出来的;nc2000 的这个 noreply 是在CardputerZero-NC2000/packaging/build_deb.sh里手写的。OAuth 其实已带user:emailscope 并能拿到 verified 邮箱,跟「登录拿不到邮箱」无关。改动
emails数组做过滤/重排。验证
node --check通过(app.js / worker);三份 i18n JSON 合法,key 全覆盖。Made with Cursor