digest_custom_html을 HTML로 처리하도록 수정 (기존: digest.html.erb 오버라이딩)

이 플러그인은 배포되었고, 곧 잊게 될 가능성이 높습니다. 따라서 digest_custom_html 필드를 의도된 대로 사용하려는 분이 계시다면, app.yml에 다음과 같은 코드를 추가하여 소스를 패치할 수 있습니다. 모든 것을 대체하는 정규식을 만드는 것은 귀찮아서, 제가 사용하던 것 하나만 처리했습니다. 필요에 맞게 수정해 주세요.

플러그인 내에서 템플릿을 만들어 app.yml에 포함할 수 있도록 했습니다. 이렇게 하면 YAML 블록 전체를 다루는 것보다 훨씬 간단합니다.

hooks:
  after_code:
    - replace:
        filename: "/var/www/discourse/app/views/user_notifications/digest.html.erb"
        from: 'digest_custom_html("above_footer") '
        to: 'digest_custom_html("above_footer").html_safe '