2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

remove UserActionObserver, replace with after_save and service

interestingly there was some left over dead code from when stars
existed in the topic_users table
This commit is contained in:
Sam 2016-12-22 15:03:40 +11:00
parent 96c70c74a1
commit 2f6a4cc6de
22 changed files with 60 additions and 42 deletions

View file

@ -187,7 +187,7 @@ class PostDestroyer
def recover_user_actions
# TODO: Use a trash concept for `user_actions` to avoid churn and simplify this?
UserActionObserver.log_post(@post)
UserActionCreator.log_post(@post)
end
def remove_associated_replies