# Locking a post in the console

**URL:** <https://meta.discourse.org/t/locking-a-post-in-the-console/106410>\
**Category:** Development\
**Created:** [January 13, 2019, 11:15am UTC](https://meta.discourse.org/t/locking-a-post-in-the-console/106410 "2019-01-13T11:15:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)\
**Post date:** [January 13, 2019, 11:15am UTC](https://meta.discourse.org/t/locking-a-post-in-the-console/106410/1 "2019-01-13T11:15:15Z")

</div>

How do you lock a post in the console?

Is it as simple as setting post.locked\_by\_id to a valid user id?

---

_[View the full topic](https://meta.discourse.org/t/locking-a-post-in-the-console/106410)._
