99use Icinga \Module \Icingadb \Common \HostStates ;
1010use Icinga \Module \Icingadb \Common \Icons ;
1111use Icinga \Module \Icingadb \Common \Links ;
12+ use Icinga \Module \Icingadb \Hook \CommentOutputHook ;
1213use Icinga \Module \Icingadb \Widget \EmptyState ;
1314use Icinga \Module \Icingadb \Widget \MarkdownLine ;
1415use Icinga \Module \Icingadb \Common \NoSubjectLink ;
@@ -54,7 +55,7 @@ protected function assembleCaption(BaseHtmlElement $caption)
5455 switch ($ this ->item ->event_type ) {
5556 case 'comment_add ' :
5657 case 'comment_remove ' :
57- $ markdownLine = new MarkdownLine ($ this ->item ->comment ->comment );
58+ $ markdownLine = new MarkdownLine (CommentOutputHook:: processComment ( $ this ->item ->comment ->comment ) );
5859 $ caption ->getAttributes ()->add ($ markdownLine ->getAttributes ());
5960 $ caption ->add ([
6061 new Icon (Icons::USER ),
@@ -65,7 +66,7 @@ protected function assembleCaption(BaseHtmlElement $caption)
6566 break ;
6667 case 'downtime_end ' :
6768 case 'downtime_start ' :
68- $ markdownLine = new MarkdownLine ($ this ->item ->downtime ->comment );
69+ $ markdownLine = new MarkdownLine (CommentOutputHook:: processComment ( $ this ->item ->downtime ->comment ) );
6970 $ caption ->getAttributes ()->add ($ markdownLine ->getAttributes ());
7071 $ caption ->add ([
7172 new Icon (Icons::USER ),
@@ -106,7 +107,9 @@ protected function assembleCaption(BaseHtmlElement $caption)
106107 t ('This acknowledgement was set before Icinga DB history recording ' )
107108 ));
108109 } else {
109- $ markdownLine = new MarkdownLine ($ this ->item ->acknowledgement ->comment );
110+ $ markdownLine = new MarkdownLine (
111+ CommentOutputHook::processComment ($ this ->item ->acknowledgement ->comment )
112+ );
110113 $ caption ->getAttributes ()->add ($ markdownLine ->getAttributes ());
111114 $ caption ->add ([
112115 new Icon (Icons::USER ),
0 commit comments