Why are posts withdrawn instead of being deleted immediately?

이전에 작성했던 코드를 찾았는데, 지금도 동작하는지 확실하지 않습니다(확인 안 해봄).

import { withPluginApi } from 'discourse/lib/plugin-api';
import RawHtml from 'discourse/widgets/raw-html'; 
 
function attachComm(api) {
  
   api.addPostClassesCallback((attrs) => {
       return attrs.user_deleted ? ["remote"] : ["rated"]; 
   });  

}
  
export default {
  name: 'alert',
  initialize(container) {
      withPluginApi('0.1', attachComm);
             }
};

이것은 플러그인의 일부였습니다. 아마 컴포넌트를 통해 비슷한 작업을 수행할 수 있을 것입니다.