Repository navigation
feat: 房间标题可自定义(默认「聚众加密聊天房间」) - #9
Merged
Merged
Conversation
An optional config title (1-60 characters, normalized, no control or bidi characters) is written, HTML-escaped, into <title> and the page heading. Set it when creating a room; any holder can change or clear it when regenerating the file (same key and password). CLI room/retarget take --title. The title is outside every key derivation and is part of the verified file. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PCUwNSXQdqfDSugmFo4qmM
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.
概要
任何人都可以给房间起标题,默认标题为「聚众加密聊天房间」。
<title>(浏览器标签页)和页面顶部大标题。room --title、retarget --title。</title><script>…,确认不会多出脚本,整个文件仍能通过核验。title,作为创建器和离线版页面的名称。测试
test/title.test.mjs:默认标题、转义与注入、长度和字符限制、转换时保留/修改/清空、CLI、网页路径与构建结果逐字节一致。browser-tests/generations.mjs:断网状态下创建带标题的房间;持有者改名后,房间号和口令密文不变,文件可通过核验。Generated by Claude Code