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

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [March 5, 2016, 7:14pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/24 "2016-03-05T19:14:35Z")

</div>

> Deleted posts count towards votes. I’d strenuously argue that these votes should not count.

This should be fixed. If a post is deleted its rating will automatically be removed from the average. If the post is restored, its rating will be added back to the average. This should also work with existing ratings topics.

There may be some remaining issues to iron out with this one, but it seems to be working in my local testing.

[https://github.com/angusmcleod/discourse-ratings/commit/74fd87d41e42caf29790b6dba0532b8b66862a01](https://github.com/angusmcleod/discourse-ratings/commit/74fd87d41e42caf29790b6dba0532b8b66862a01)

---

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