# Topic Ratings Plugin

**URL:** https://meta.discourse.org/t/topic-ratings-plugin/39578
**Category:** Plugin
**Tags:** pavilion
**Created:** [February 14, 2016, 9:06pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578 "2016-02-14T21:06:53Z")
**Posts on this page:** 1
**Showing post:** 353

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [November 28, 2020, 5:20pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/353 "2020-11-28T17:20:14Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/c/e/ce6086a906f6c7e75f9dd7e9e323569385d7e0dd.png)

![image](https://global.discourse-cdn.com/meta/original/3X/0/b/0b04a2498b3beee6855a60d52be83893035c9481.png)

![image](https://global.discourse-cdn.com/meta/optimized/3X/1/4/144f947ae64e1a9dc4030495333ad8a5849bb509_2_690x61.png)

API event bug:

If you create a new post with ratings or edit a post with different ratings, the `post_edited` or `post_created` events doesn’t use the new values but the old ones.

E.g.:  
On new post with valid ratings, the event will have an empty `ratings` value.  
On post edition, if you change from rating 5 to rating 2, the event will contain a `ratings` value with 5

It happens either using Discourse directly or using the API.

Here a small video on edition:

---

_[View the full topic](https://meta.discourse.org/t/topic-ratings-plugin/39578)._
