A platform for community discussion. Free, open, simple.
DEV: Remove deprecated PostAction.act method (#23641)
Ted Johansson950357391a8c
diff --git a/app/models/post_action.rb b/app/models/post_action.rbindex 45f2e3cbfd6..1d0e2bc7875 100644--- a/app/models/post_action.rb+++ b/app/models/post_action.rb@@ -123,19 +123,6 @@ class PostAction < ActiveRecord::BaseRateLimiter.new(user, "post_action-#{post.id}_#{post_action_type_id}", 4, 1.minute).performed!end- def self.act(created_by, post, post_action_type_id, opts = {})- Discourse.deprecate(- "PostAction.act is deprecated. Use `PostActionCreator` instead.",- output_in_test: true,- drop_from: "2.9.0",- )-- result =- PostActionCreator.new(created_by, post, post_action_type_id, message: opts[:message]).perform-- result.success? ? result.post_action : nil- end-def self.copy(original_post, target_post)cols_to_copy = (column_names - %w[id post_id]).join(", ")