mirror of
https://ghfast.top/https://github.com/discourse/discourse-akismet.git
synced 2026-07-15 11:36:24 +08:00
Update ReviewableAkismetPostVotingComment model to support both legacy and new UI patterns and add system tests.
12 lines
286 B
Ruby
12 lines
286 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_dependency "reviewable_serializer"
|
|
|
|
class ReviewableAkismetPostVotingCommentSerializer < ReviewableSerializer
|
|
target_attributes :cooked
|
|
payload_attributes :comment_cooked, :post_id, :external_error
|
|
|
|
def created_from_flag?
|
|
true
|
|
end
|
|
end
|