mirror of
https://ghfast.top/https://github.com/discourse/discourse-akismet.git
synced 2026-07-16 11:46:29 +08:00
What is the problem? The reviewable UI refresh has been fully rolled out in Discourse core (discourse/discourse#36752), which removes the `reviewable_old_moderator_actions` site setting, deletes the `reviewable-refresh/` component directory, and renames the `RefreshedReview` page object to `Review`. Plugins need to be updated to align with these changes. What is the solution? - Delete legacy reviewable components (`reviewable-akismet-post.gjs`, `reviewable-akismet-user.gjs`, `reviewable-akismet-post-voting-comment.gjs`) that were used by the old UI - Move `reviewable-refresh/` components to `reviewable/` and update imports to reference the new canonical paths (e.g. `reviewable/post` instead of `reviewable-refresh/post`) - Rename `build_legacy_combined_actions` to `build_combined_actions` and `build_legacy_action` to `build_action` in all three reviewable models - Remove `build_new_separated_actions` methods that are no longer needed - Update system tests to use `Pages::Review` instead of `Pages::RefreshedReview` and remove references to the deleted `reviewable_old_moderator_actions` setting
17 lines
546 B
Text
17 lines
546 B
Text
import ReviewablePost from "discourse/components/reviewable/post";
|
|
import { i18n } from "discourse-i18n";
|
|
import ReviewableAkismetApiError from "../reviewable-akismet-api-error";
|
|
|
|
<template>
|
|
<ReviewablePost
|
|
@reviewable={{@reviewable}}
|
|
@userLabel={{i18n "review.flagged_user"}}
|
|
@pluginOutletName="after-reviewable-akismet-post-body"
|
|
>
|
|
{{#if @reviewable.payload.external_error}}
|
|
<ReviewableAkismetApiError
|
|
@external_error={{@reviewable.payload.external_error}}
|
|
/>
|
|
{{/if}}
|
|
</ReviewablePost>
|
|
</template>
|