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 curtidas

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

Reabri este tópico antigo porque ele se relaciona com impersonate, que está sendo analisado em Add 'stop impersonating' link to user avatar dropdown when impersonating - #41 by ted.

Notei que o comportamento na postagem original ainda é o mesmo de 2013. Se você se passar por um usuário, a data de última visualização dele é atualizada, o que é facilmente reproduzível ao olhar a lista de administradores de usuários. Acabei de me passar por um usuário em meu site pessoal que não era visto há alguns anos e agora ele está em segundo lugar na lista.

Suspeito que o mesmo ocorra na lista pública de usuários e em quem está online, se esse plugin estiver instalado.

1 curtida

Acho que já existia um pedido de funcionalidade que não foi excluído

2 curtidas

Boa observação! A conversa continua neste tópico posterior:

1 curtida