# 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:** 1

<div class="post-metadata">

**Author:** ![piffy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/piffy/32/254198_2.png) [@piffy](https://meta.discourse.org/u/piffy)\
**Post date:** [October 26, 2022, 6:24pm UTC](https://meta.discourse.org/t/add-likes-programmatically/242993/1 "2022-10-26T18:24:51Z")

</div>

During import to discourse, a major post lost 100 likes in the transition (I failed to scrape it properly). I prefer not to re-run the import script in this case.

If I have the list of users who liked the post, what’s the best way of adding those? Is there a rake command?

---

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