mirror of
https://ghfast.top/https://github.com/discourse/discourse-akismet.git
synced 2026-07-15 11:36:24 +08:00
Refactored ReviewableAkismetComment model to support both legacy and new UI patterns - Renamed build_actions to build_legacy_combined_actions for backward compatibility - Added build_new_separated_actions for the new UI action pattern - Created new akisment-post.gjs Glimmer component to display reviewable - Added system specs covering basic actions
12 lines
260 B
Ruby
12 lines
260 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_dependency "reviewable_serializer"
|
|
|
|
class ReviewableAkismetPostSerializer < ReviewableSerializer
|
|
target_attributes :cooked
|
|
payload_attributes :post_cooked, :external_error
|
|
|
|
def created_from_flag?
|
|
true
|
|
end
|
|
end
|