# スタッフ未ログインにより無効化

**URL:** <https://meta.discourse.org/t/deactivated-by-staff-not-being-logged/86944>\
**Category:** Bug\
**Created:** [2018 年 4 月 29 日午後 6:48 UTC](https://meta.discourse.org/t/deactivated-by-staff-not-being-logged/86944 "2018-04-29T18:48:54Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2018 年 5 月 8 日午前 2:56 UTC](https://meta.discourse.org/t/deactivated-by-staff-not-being-logged/86944/9 "2018-05-08T02:56:56Z")

</div>

Deactivated user doesn’t show up (under subject) in logs if they are deleted. This is because we store target user ID in logs, and if that user gets deleted there is no associated account with that ID.

I added the location as context to deactivated user logs which contains user ID and username via:

[https://github.com/discourse/discourse/commit/3a6e137e70c0d57e977679b8a39494c17b1c469e](https://github.com/discourse/discourse/commit/3a6e137e70c0d57e977679b8a39494c17b1c469e)

This is how the “deactivate user” log will look now:

 ![24](https://global.discourse-cdn.com/meta/original/3X/e/9/e9a7bbfc40cf625e30320dd1126c19be71bb9ea5.png)

Note that this change will apply on all future deactivations.

---

_[View the full topic](https://meta.discourse.org/t/deactivated-by-staff-not-being-logged/86944)._
