Skip to content

Commit ca8ef02

Browse files
authored
Merge pull request #38 from topcoder-platform/issues-244-1
Fixed quote rendering
2 parents 8834d27 + 931d6f7 commit ca8ef02

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

class.groups.plugin.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ public function categoryModel_hasWatched_create(CategoryModel $sender) {
558558
}
559559
}
560560

561-
$metaData= $userMetaModel->getUserMeta(Gdn::session()->UserID, $newCommentKey);
561+
$metaData= $userMetaModel->getUserMeta($userID, $newCommentKey);
562562
foreach ($metaData as $key => $value) {
563563
if($value != null) {
564564
return true;
@@ -603,8 +603,7 @@ public function discussionModel_beforeRecordAdvancedNotification_handler($sender
603603
}
604604
$data["HeadlineFormat"] = $headline;
605605
// Format to Html
606-
$story = Gdn::formatService()->renderHTML($discussion['Body'], $discussion['Format']);
607-
$message = $story; // htmlspecialchars(Gdn_Format::plainText($story, 'Html'));
606+
$message = Gdn::formatService()->renderQuote($discussion['Body'], $discussion['Format']);
608607
// We just converted it to HTML. Make sure everything downstream knows it.
609608
// Taking this HTML and feeding it into the Rich Format for example, would be invalid.
610609
$data['Format'] = 'Html';
@@ -660,7 +659,7 @@ public function commentModel_beforeRecordAdvancedNotification($sender, $args){
660659
// $data["HeadlineFormat"] = 'The new discussion has been posted in the category ' . $categoryName . '.';
661660
// Format to Html
662661
$discussionStory = condense(Gdn_Format::to($discussion['Body'], $discussion['Format']));
663-
$commentStory = Gdn::formatService()->renderHTML($comment['Body'],$comment['Format']);
662+
$commentStory = Gdn::formatService()->renderQuote($comment['Body'],$comment['Format']);
664663
// We just converted it to HTML. Make sure everything downstream knows it.
665664
// Taking this HTML and feeding it into the required format for example, would be invalid.
666665
$data['Format'] = 'Html';

0 commit comments

Comments
 (0)