# 建议：冒充账号不应影响“最后上线”日期

**URL:** https://meta.discourse.org/t/suggestion-impersonating-an-account-should-not-affect-last-seen-date/189347
**Category:** Feature
**Tags:** impersonate
**Created:** [2021 年5 月 5 日 12:23 UTC](https://meta.discourse.org/t/suggestion-impersonating-an-account-should-not-affect-last-seen-date/189347 "2021-05-05T12:23:35Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [2021 年5 月 5 日 12:23 UTC](https://meta.discourse.org/t/suggestion-impersonating-an-account-should-not-affect-last-seen-date/189347/1 "2021-05-05T12:23:35Z")

</div>

大家好，

当前的行为是：当模拟用户账户时，最后活跃时间会受到此操作的影响。这种行为会让其他用户和我们的工作人员感到困惑，因为他们会误以为用户确实在该日期/时间在线。

我的建议是：模拟操作不应计入最后活跃时间。

期待大家的反馈 🙂

---

<div class="post-metadata">

### Author: ![Krunnie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krunnie/32/216504_2.png) [@Krunnie](https://meta.discourse.org/u/Krunnie)
#### Post date: [2021 年5 月 5 日 12:51 UTC](https://meta.discourse.org/t/suggestion-impersonating-an-account-should-not-affect-last-seen-date/189347/2 "2021-05-05T12:51:19Z")

</div>

我不得不同意这一点。据我所知，我所在社区的一些论坛中，我和朋友们曾参与其中，而那些论坛的管理员会恶意使用“冒充”功能，试图让他人陷入麻烦。

> [@jrgong](#):
>
> 工作人员假设用户确实在该日期/时间在线。

工作人员应能访问显示何时以及谁冒充了某个账户的工作人员日志。你们应该让团队中的每个人都了解这一点。

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [2021 年5 月 5 日 13:18 UTC](https://meta.discourse.org/t/suggestion-impersonating-an-account-should-not-affect-last-seen-date/189347/3 "2021-05-05T13:18:02Z")

</div>

> [@Krunnie](#):
>
> 那些论坛的管理员会恶意使用“冒充”功能，试图让人陷入麻烦。

管理员本就可以随时在数据库中重置该日期，或者通过插件阻止更新最后活跃时间。如果你无法信任管理员，那就无能为力了。

---

<div class="post-metadata">

### Author: ![Krunnie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krunnie/32/216504_2.png) [@Krunnie](https://meta.discourse.org/u/Krunnie)
#### Post date: [2021 年5 月 5 日 13:23 UTC](https://meta.discourse.org/t/suggestion-impersonating-an-account-should-not-affect-last-seen-date/189347/4 "2021-05-05T13:23:31Z")

</div>

> [@michaeld](#):
>
> 如果你无法信任管理员，那你也就无能为力了。

这与其说是其他问题，不如说是系统本身的缺陷。

我认为有一件事或许真的能有所帮助：向被冒充的用户发送通知。是的，插件开发者确实可以绕过这一机制，但大多数恶意管理员通常只是被这类警告吓退的青少年，或者是那些根本无力雇佣他人来编写此类插件的成年人。

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [2021 年5 月 5 日 14:16 UTC](https://meta.discourse.org/t/suggestion-impersonating-an-account-should-not-affect-last-seen-date/189347/5 "2021-05-05T14:16:59Z")

</div>

我想我们在这里有点偏离主题了。当用户被冒充时更新“最后可见时间”带来的困惑多于用处。

如果我们确实需要对冒充行为进行更多审计，那是另一回事。

顺便说一句，我认为你在这里做出了一些危险的假设。

> [@Krunnie](#):
>
> … 通常是青少年  
> … 不太可能负担得起雇佣他人

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [2025 年9 月 15 日 15:22 UTC](https://meta.discourse.org/t/suggestion-impersonating-an-account-should-not-affect-last-seen-date/189347/6 "2025-09-15T15:22:30Z")

</div>

这是我们用例的快速跟进。

由于我们话题的性质，用户非常关注隐私。因此，当一个长期核心用户（“曾经是”核心用户）突然重新出现，并且由于某些管理员冒充而拥有了一个新的“上次 seen”日期时，我们的一些用户会感到担忧或有些困惑…… 👀

---

<div class="post-metadata">

### Author: ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)
#### Post date: [2025 年10 月 2 日 03:21 UTC](https://meta.discourse.org/t/suggestion-impersonating-an-account-should-not-affect-last-seen-date/189347/7 "2025-10-02T03:21:30Z")

</div>

如果您正在使用 [新的模拟功能](https://meta.discourse.org/t/add-stop-impersonating-link-to-user-avatar-dropdown-when-impersonating/13806/41?u=ted)（通过将隐藏的站点设置 `experimental_impersonation` 设置为 `true` 来启用），那么在模拟用户时将不再触碰 `last_seen_at` 时间戳。

> <https://github.com/discourse/discourse/pull/34872>
>
> \### What is this change?
> 
> Before this change, impersonating a user would resul…t in that user's \`last\_seen\_at\` being updated. This PR fixes that for the new impersonation feature gated behind the \`experimental\_impersonation\` site setting.
> 
> \### Limitations
> 
> The old impersonation feature that logs in as the impersonated user has a completely separate code path. If we decide to backport this change it will be in a separate PR.

我们仍在计划将新的模拟功能推广到 Discourse 托管论坛。

---

<div class="post-metadata">

### Author: ![ToddZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toddz/32/328350_2.png) [@ToddZ](https://meta.discourse.org/u/ToddZ)
#### Post date: [2025 年10 月 3 日 19:07 UTC](https://meta.discourse.org/t/suggestion-impersonating-an-account-should-not-affect-last-seen-date/189347/8 "2025-10-03T19:07:27Z")

</div>

我了解到新的模拟功能旨在降低其影响，但目前除了 `last_seen_at` 之外还有其他影响。据我所知，当你模拟用户时，你就是_那个用户_。

点击待处理的通知？他们现在已经看到了。  
打开未读帖子？他们现在已经阅读了。

了解这一点后，我只会将其用于故障排除，并需要用户知情。如果用户收到通知并提供模拟会话活动的日志，我将没有意见。

---

<div class="post-metadata">

### Author: ![eisammy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eisammy/32/528804_2.png) [@eisammy](https://meta.discourse.org/u/eisammy)
#### Post date: [2025 年10 月 3 日 19:42 UTC](https://meta.discourse.org/t/suggestion-impersonating-an-account-should-not-affect-last-seen-date/189347/9 "2025-10-03T19:42:20Z")

</div>

好的，但是当我的最后一个 IP 留在那儿公开给那个用户看到时？当我冒充任何用户时，我的 IP 会“泄露”还是我错了？

我的解决方案是隐藏这一部分

![image](https://global.discourse-cdn.com/meta/original/4X/0/9/2/09263967b057a93483a885743ce16f42cf31b077.png)
