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:
parent
96c70c74a1
commit
2f6a4cc6de
22 changed files with 60 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue