Skip to content

Commit eef2042

Browse files
authored
Merge pull request #7 from topcoder-platform/issues-6
Fixed notification links
2 parents 4a0cc5b + 84c2b69 commit eef2042

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Topcoder/class.topcoder.plugin.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,21 @@ public static function getUserPhotoUrl($user) {
128128
}
129129
}
130130

131+
if(!function_exists('topcoderRatingCssClass')) {
132+
/**
133+
* Take an user name to get rating css style .
134+
*
135+
* @return string Returns rating css style
136+
*/
137+
function topcoderRatingCssClass($name) {
138+
$topcoderRating = TopcoderPlugin::getTopcoderRating($name);
139+
if ($topcoderRating != null) {
140+
$coderStyles = TopcoderPlugin::getRatingCssClass($topcoderRating);
141+
return $coderStyles;
142+
}
143+
return '';
144+
}
145+
}
131146

132147
if (!function_exists('userBuilder')) {
133148
/**
@@ -352,7 +367,7 @@ function writeActivity($activity, $sender, $session) {
352367
$excerpt = Gdn_Format::to($activity->Story, $format);
353368

354369
if ($activity->NotifyUserID > 0 || !in_array($activityType, ['WallComment', 'WallPost', 'AboutUpdate'])) {
355-
$title = '<div class="Title" role="heading" aria-level="3">'.Gdn_Format::to(val('Headline', $activity), 'html').'</div>';
370+
$title = '<div class="Title" role="heading" aria-level="3">'.val('Headline', $activity).'</div>';
356371
} else if ($activityType == 'WallPost') {
357372
$regardingUser = userBuilder($activity, 'Regarding');
358373
$photoAnchor = userPhoto($regardingUser);

0 commit comments

Comments
 (0)