mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 11:02:46 +08:00
93a8e34f47
To reproduce the initial issue here: 1. A user makes a post, which discourse-akismet marks as spam (I cheated and called `DiscourseAkismet::PostsBouncer.new.send(:mark_as_spam, post)` for this) 2. The post lands in the review queue 3. The category the topic is in has a `reviewable_by_group_id` 4. A user in that group goes and looks at the Review queue, decides the post is not spam, and clicks Not Spam 5. Weird stuff happens because the `PostDestroyer#recover` method didn't handle this (the user who clicked Not Spam was not the owner of the post and was not a staff member, so the post didn't get un-destroyed and post counts didn't get updated) Now users who belong to a group who can review a category now have the ability to recover/delete posts fully. |
||
---|---|---|
.. | ||
components | ||
fabricators | ||
fixtures | ||
helpers | ||
import_export | ||
initializers | ||
integration | ||
integrity | ||
jobs | ||
lib | ||
mailers | ||
models | ||
multisite | ||
requests | ||
script/import_scripts | ||
serializers | ||
services | ||
support | ||
tasks | ||
views/omniauth_callbacks | ||
rails_helper.rb | ||
swagger_helper.rb |