diff --git a/vanilla/applications/vanilla/views/discussion/helper_functions.php b/vanilla/applications/vanilla/views/discussion/helper_functions.php index 5e3646b..a5b7ba3 100644 --- a/vanilla/applications/vanilla/views/discussion/helper_functions.php +++ b/vanilla/applications/vanilla/views/discussion/helper_functions.php @@ -106,7 +106,12 @@ function writeComment($comment, $sender, $session, $currentOffset) { $sender->EventArguments['Type'] = 'Comment'; // First comment template event - $sender->fireEvent('BeforeCommentDisplay'); ?> + $sender->fireEvent('BeforeCommentDisplay'); + + // FIX: https://github.com/topcoder-platform/forums/issues/488: + // ViewMode should be set before displaying comment + $viewMode = $sender->data('ViewMode'); + ?>