Discussion reply notifications show the real name of an anonymous replier

未关闭 适合新手
#2,403 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
frontend

调研方向

从 discussion-student.component.ts 中的 sendPostToStudentsInThread(第 259-266 行)开始,其中通知文本是基于 getUsernamesByWorkgroupId 构建的。找到该组件的匿名化标志,比较讨论视图如何选择匿名名称,然后在匿名化时让通知省略回复者的姓名。完成标准是:匿名化话题的通知措辞通用,而非匿名化的通知仍会显示回复者的姓名。

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

描述

With "Anonymize responses" enabled, a student who replies in a thread is shown under an anonymous name in the discussion, but the notification sent to the thread's other participants names them.

How to reproduce

  1. Author a Discussion with "Anonymize responses" enabled.
  2. Student A posts; student B replies to A's post.
  3. As student A, open the notifications menu.

The notification reads "<B's real name> replied to a discussion you were in!".

Cause

DiscussionStudentComponent.sendPostToStudentsInThread (discussion-student.component.ts lines 259 to 266) builds the message from getUsernamesByWorkgroupId without checking whether the component is anonymized. The real name is also stored in the notification's message on the server.

Possible fix

When the component is anonymized, leave the name out ("Someone replied to a discussion you were in!") or use the anonymous name. Leaving it out avoids depending on the anonymous name being the same for every viewer, which it currently is not (#2393).

主要语言
TypeScript
星标
4
派生
8
平均合并
3 天 8 小时
30 天内合并 PR
12

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

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

WISE-Community/WISE-Client 的其他 Issue

查看 WISE-Community/WISE-Client 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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