# How to like posts from a plugin in a secure way

**URL:** <https://meta.discourse.org/t/how-to-like-posts-from-a-plugin-in-a-secure-way/60808>\
**Category:** Development\
**Created:** [April 11, 2017, 9:32pm UTC](https://meta.discourse.org/t/how-to-like-posts-from-a-plugin-in-a-secure-way/60808 "2017-04-11T21:32:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [April 11, 2017, 10:22pm UTC](https://meta.discourse.org/t/how-to-like-posts-from-a-plugin-in-a-secure-way/60808/2 "2017-04-11T22:22:43Z")

</div>

After some more investigation I’ve found `lib/post_action_creator` which seems ideal. However, I can’t find an equivalent to “un-like” a post. Would that be PR material?

> <https://github.com/discourse/discourse/blob/main/lib/post_action_creator.rb>

---

_[View the full topic](https://meta.discourse.org/t/how-to-like-posts-from-a-plugin-in-a-secure-way/60808)._
