# 谁在线“行动”

**URL:** https://meta.discourse.org/t/whos-online-action/204111
**Category:** Feature
**Tags:** whos-online
**Created:** [2021年九月21日 15:19 UTC](https://meta.discourse.org/t/whos-online-action/204111 "2021-09-21T15:19:41Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![daemon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daemon/32/256632_2.png) [@daemon](https://meta.discourse.org/u/daemon)
#### Post date: [2021年九月21日 15:19 UTC](https://meta.discourse.org/t/whos-online-action/204111/1 "2021-09-21T15:19:41Z")

</div>

你好！

是否可能通过主题组件或增强插件

> [@Discourse Who's Online](https://meta.discourse.org/t/whos-online-plugin-discourse-whos-online/52345):
>
> discourse2Summary Discourse Who’s Online displays a list of users currently active on the sitehammer_and_wrenchRepository Link [https://github.com/discourse/discourse-whos-online](https://github.com/discourse/discourse-whos-online)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)Featuresinformation_source Think carefully before installing this plugin. Discourse is designed for asynchronous discussion, and a list of online users can be harmful for some communities information_source This plugin is b…

来实现不仅显示哪些用户在线，还能显示他们当前正在做什么？

在使用 Discourse 之前，我大量使用过 SMF（[simplemachines.org](http://simplemachines.org)），在那里你可以看到在线用户当前正在做什么。

 ![whoisonline](https://global.discourse-cdn.com/meta/original/3X/6/d/6d8b9f2025006e5d98410d47f2107e3e57d4fe85.png)

这是 SMF 的内置功能，而非插件或其他扩展。

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2021年九月21日 15:49 UTC](https://meta.discourse.org/t/whos-online-action/204111/2 "2021-09-21T15:49:44Z")

</div>

目前，我们在核心功能中没有此类计划（我不确定我们是否想要这样做？我们倾向于使用异步方式，而了解每个人在任何时刻都在做什么恰恰与此相反！）

无论如何，这应该可以通过插件实现……我们最近添加了一个 PresenceChannel API，使此类操作变得更加容易：

[https://github.com/discourse/discourse/commit/31db83527b9b02000f133c782e9e6ab4b4a16659](https://github.com/discourse/discourse/commit/31db83527b9b02000f133c782e9e6ab4b4a16659)

---

<div class="post-metadata">

### Author: ![daemon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daemon/32/256632_2.png) [@daemon](https://meta.discourse.org/u/daemon)
#### Post date: [2021年九月21日 16:34 UTC](https://meta.discourse.org/t/whos-online-action/204111/3 "2021-09-21T16:34:02Z")

</div>

感谢您的回复！

我并没有说这应该是一个核心功能，我只是询问是否可以通过插件或主题组件来实现。

此外，您的论点有点奇怪，因为当您在某个话题（或私信）中时，如果有人正在回复，您可以看到该用户正在输入。因此，系统知道每个用户当前在做什么。

我不熟悉 Ruby，所以无法制作插件。

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2021年九月21日 17:02 UTC](https://meta.discourse.org/t/whos-online-action/204111/4 "2021-09-21T17:02:56Z")

</div>

> [@daemon](#):
>
> 我并没有说这应该是一个核心功能

没错，是我的错！我对将其作为 SMF 内置功能的提及理解过度了。

> [@daemon](#):
>
> 因为当你处于某个主题（或私信）中时，如果有人正在回复，你可以看到该用户正在输入。

没错，但这要求你们必须在同一时间处于同一位置……这里存在一个小障碍。在我看来，在同一个主题中看到有人正在输入的实用性也很明显……例如在 Meta 论坛上，如果我看到我们团队中的某人在回复，我就可以安心地去做其他事情了。

一个带有在线状态显示的独立页面会大大更容易让人跟踪或微观管理某人，而在这种行为之外的实用性对我来说似乎不太明确。您是否想解决某种特定的使用场景？了解这一点可能会有所帮助。

> [@daemon](#):
>
> 我不熟悉 Ruby，所以无法制作插件。

没关系！社区中可能还有其他人对开发此功能感兴趣，这正是公开讨论功能开发的好处之一。

---

<div class="post-metadata">

### Author: ![daemon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daemon/32/256632_2.png) [@daemon](https://meta.discourse.org/u/daemon)
#### Post date: [2021年九月22日 21:18 UTC](https://meta.discourse.org/t/whos-online-action/204111/5 "2021-09-22T21:18:32Z")

</div>

感谢您的回复，也抱歉我回复晚了！

我不需要它，只是因为我从 SMF 中了解到它。

---

<div class="post-metadata">

### Author: ![ccstone](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ccstone/32/140215_2.png) [@ccstone](https://meta.discourse.org/u/ccstone)
#### Post date: [2023年一月1日 00:35 UTC](https://meta.discourse.org/t/whos-online-action/204111/6 "2023-01-01T00:35:22Z")

</div>

各位朋友：

我刚注意到“在线用户”插件，虽然我挺喜欢它，但我认为要求用户完全隐藏他们的存在（_隐藏我的公开个人资料和在线状态_）才能选择退出，这有点过了。

依我看，应该可以简单地选择退出“在线用户”。

这在我多年来在其他论坛上见过的最合理、最负责任的用户关怀选项。

- Chris

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2023年一月1日 00:52 UTC](https://meta.discourse.org/t/whos-online-action/204111/7 "2023-01-01T00:52:41Z")

</div>

这已经在这里提出过了：

> [@Split profile hiding and presence](https://meta.discourse.org/t/split-profile-hiding-and-presence/184316?u=merefield):
>
> Whilst this isn’t directly related to this plugin, the availability of this plugin raises the following: You know it would be nice if these were two separate settings? Plenty of users might want to expose their profile whilst not appearing to be present?
