Don't change 'last seen' when impersonating a user

AI-generated summary

The discussion revolves around the behavior of the last seen timestamp when an admin impersonates a user in Discourse. Sander78 highlights that impersonation updates the user’s last seen time, which can be misleading since the admin, not the actual user, is active. Sam agrees, noting this is useful for diagnostics. Tobiaseigen confirms the issue persists since 2013 and links to a related topic, emphasizing the impact on user lists and online status. Moin references a prior feature request on the same topic, and Tobiaseigen directs to a more recent discussion, indicating ongoing interest in resolving this behavior.

When - as an admin - you impersonate a user, their last seen is updated. That is of course because you completely impersonate the user as if he were behind the keyboard.

But… you’re not the user. You might use that option to quickly check something from the point of view of the user.

So, is it possible to skip updating the last seen? And maybe there are other things that should not be updated when logged in through the admin account.

「いいね!」 12

I agree, its something that would be handy for diagnostics.

この古いトピックを復元したのは、現在 Add 'stop impersonating' link to user avatar dropdown when impersonating - #41 by ted で調査中の impersonate に関連しているためです。

OPの動作は2013年から変わっていないことに気づきました。ユーザーになりすますと、そのユーザーの last seen 日付が更新されます。これは、管理者ユーザーリストを見れば簡単に再現できます。個人的なサイトで数年間アクセスしていなかったユーザーになりすましたところ、そのユーザーがリストの2番目になりました。

公開ユーザーリストや、そのプラグインがインストールされている場合はオンライン中のユーザーリストでも同様のことが起こっていると疑っています。

「いいね!」 1

削除されていない機能リクエストがすでにあると思います。

「いいね!」 2

よく気がつきましたね!会話は、この後のトピックで続きます。

「いいね!」 1