# Add likes programmatically?

**URL:** <https://meta.discourse.org/t/add-likes-programmatically/242993>\
**Category:** Product Support\
**Created:** [October 26, 2022, 6:24pm UTC](https://meta.discourse.org/t/add-likes-programmatically/242993 "2022-10-26T18:24:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [October 26, 2022, 7:39pm UTC](https://meta.discourse.org/t/add-likes-programmatically/242993/2 "2022-10-26T19:39:58Z")

</div>

What I’d do is look at the import script that imports the likes to see what it does to add the likes then do that in the rails console. I’m fairly certain it’s a `PostAction`.

I’m fairly certain that there is not such a rake command, as it’s a fairly unusual request (mostly, I’d just re-run the import script), but I haven’t looked.

---

_[View the full topic](https://meta.discourse.org/t/add-likes-programmatically/242993)._
