PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.11.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.11.0
2.11.0 2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 All 78 releases
← All changes | app/Hooks/Handlers/NotificationEventHandler.php +10 -10 2.7.72.11.0 View file →
@@ -60,9 +60,9 @@
60 60
61 61 $notificationContent = \sprintf(
62 62 /* translators: %1$s is the user name, %2$s is the feed title and %3$3s is the space title */
63 63 __('%1$s posted %2$s in %3$s', 'fluent-community'),
64 - '<b class="fcom_nudn">' . esc_html($user->display_name) . '</b>',
64 + '<b class="fcom_nudn">' . esc_html($user->getPublicDisplayName()) . '</b>',
65 65 '<span class="fcom_nft">' . $feedTitle . '</span>',
66 66 '<b class="fcom_nst">' . esc_html($space->title) . '</b>'
67 67 );
68 68
@@ -100,9 +100,9 @@
100 100 if ($existingNotification) {
101 101 $notificationContent = \sprintf(
102 102 /* translators: %1$s is the user name, %2$s is the like count & %3$s is the feed title */
103 103 __('%1$s and %2$s other people reacted to your post %3$s', 'fluent-community'),
104 - '<b class="fcom_nudn">' . esc_html($user->display_name) . '</b>',
104 + '<b class="fcom_nudn">' . esc_html($user->getPublicDisplayName()) . '</b>',
105 105 '<b class="fcom_nrc">' . ($feed->reactions_count - 1) . '</b>',
106 106 '<span class="fcom_nft">' . $feedTitle . '</span>'
107 107 );
108 108
@@ -121,9 +121,9 @@
121 121
122 122 $notificationContent = \sprintf(
123 123 /* translators: %1$s is the user name, %2$s is the feed title */
124 124 __('%1$s reacted to your post %2$s', 'fluent-community'),
125 - '<b class="fcom_nudn">' . esc_html($user->display_name) . '</b>',
125 + '<b class="fcom_nudn">' . esc_html($user->getPublicDisplayName()) . '</b>',
126 126 '<span class="fcom_nft">' . $feedTitle . '</span>'
127 127 );
128 128
129 129 $route = $feed->getJsRoute();
@@ -154,9 +154,9 @@
154 154 if ($comment->reactions_count > 1) {
155 155 $notificationContent = \sprintf(
156 156 /* translators: %1$s is the user name, %2$s is the like count & %3$s is the comment excerpt */
157 157 __('%1$s and %2$s other people reacted to your comment %3$s', 'fluent-community'),
158 - '<b class="fcom_nudn">' . esc_html($user->display_name) . '</b>',
158 + '<b class="fcom_nudn">' . esc_html($user->getPublicDisplayName()) . '</b>',
159 159 '<b class="fcom_nrc">' . ($comment->reactions_count - 1) . '</b>',
160 160 '<span class="fcom_nft">' . $commentExcerpt . '</span>'
161 161 );
162 162 } else {
@@ -162,9 +162,9 @@
162 162 } else {
163 163 $notificationContent = \sprintf(
164 164 /* translators: %1$s is the user name, %2$s is the comment excerpt */
165 165 __('%1$s reacted to your comment %2$s', 'fluent-community'),
166 - '<b class="fcom_nudn">' . esc_html($user->display_name) . '</b>',
166 + '<b class="fcom_nudn">' . esc_html($user->getPublicDisplayName()) . '</b>',
167 167 '<span class="fcom_nft">' . $commentExcerpt . '</span>'
168 168 );
169 169 }
170 170
@@ -239,9 +239,9 @@
239 239 if (in_array($authorId, $mentionedUserIds)) {
240 240 return;
241 241 }
242 242
243 - $commenter = '<b class="fcom_nudn">' . esc_html($comment->user->display_name) . '</b>';
243 + $commenter = '<b class="fcom_nudn">' . esc_html($comment->user->getPublicDisplayName()) . '</b>';
244 244 $feedTitle = $feed->getHumanExcerpt(60);
245 245
246 246 $exist = null;
247 247 if ($feed->comments_count > 1) {
@@ -390,9 +390,9 @@
390 390 if (!$userIds && !$mentionedUserIds) {
391 391 return;
392 392 }
393 393
394 - $commenter = '<b class="fcom_nudn">' . esc_html($comment->user->display_name) . '</b>';
394 + $commenter = '<b class="fcom_nudn">' . esc_html($comment->user->getPublicDisplayName()) . '</b>';
395 395 $feedTitle = '<span class="fcom_nft">' . $feed->getHumanExcerpt(60) . '</span>';
396 396
397 397 $route = $feed->getJsRoute();
398 398 $space = $feed->space;
@@ -532,9 +532,9 @@
532 532 if (!$mentionedUserIds) {
533 533 return;
534 534 }
535 535
536 - $commenter = '<b class="fcom_nudn">' . esc_html($comment->user->display_name) . '</b>';
536 + $commenter = '<b class="fcom_nudn">' . esc_html($comment->user->getPublicDisplayName()) . '</b>';
537 537 $feedTitle = '<span class="fcom_nft">' . $feed->getHumanExcerpt(60) . '</span>';
538 538
539 539 $mentionNotification = Notification::create([
540 540 'feed_id' => $feed->id,
@@ -586,9 +586,9 @@
586 586 if (!$childCommentUserIds) {
587 587 return false;
588 588 }
589 589
590 - $commenter = '<b class="fcom_nudn">' . esc_html($comment->user->display_name) . '</b>';
590 + $commenter = '<b class="fcom_nudn">' . esc_html($comment->user->getPublicDisplayName()) . '</b>';
591 591
592 592 $existingNotification = Notification::where('object_id', $comment->parent_id)
593 593 ->where('action', 'child_comment_added')
594 594 ->whereHas('subscribers', function ($q) use ($childCommentUserIds) {
@@ -685,9 +685,9 @@
685 685
686 686 $notificationContent = \sprintf(
687 687 /* translators: %1$s is the user name, %2$s is the feed title */
688 688 __('%1$s mentioned you in a post: %2$s', 'fluent-community'),
689 - '<b class="fcom_nudn">' . esc_html($user->display_name) . '</b>',
689 + '<b class="fcom_nudn">' . esc_html($user->getPublicDisplayName()) . '</b>',
690 690 '<b class="fcom_nft">' . $feedTitle . '</b>'
691 691 );
692 692
693 693 $route = $feed->getJsRoute();