| @@ -8,8 +8,9 @@ | ||
| 8 | 8 | use FluentCommunity\App\Models\User; |
| 9 | 9 | use FluentCommunity\App\Services\CustomSanitizer; |
| 10 | 10 | use FluentCommunity\App\Services\Helper; |
| 11 | 11 | use FluentCommunity\App\Services\ProfileHelper; |
| 12 | +use FluentCommunity\App\Functions\Utility; | |
| 12 | 13 | use FluentCommunity\Framework\Support\Arr; |
| 13 | 14 | |
| 14 | 15 | class DailyDigest |
| 15 | 16 | { |
| @@ -207,9 +208,9 @@ | ||
| 207 | 208 | </td> |
| 208 | 209 | <td style="font-family: Arial, sans-serif; font-size: 16px;color: #3c434a; padding-left: 5px; vertical-align: middle;"> |
| 209 | 210 | <a style="color: #3c434a; text-decoration: none;" target="_blank" |
| 210 | 211 | href="<?php echo esc_url($permalink); ?>"> |
| 211 | - <?php echo wp_kses_post($notification->content); ?> | |
| 212 | + <?php echo wp_kses_post((string) $notification->content); ?> | |
| 212 | 213 | </a> |
| 213 | 214 | <p style="font-family: Arial, sans-serif; font-size: 12px; font-weight: normal; margin: 0; margin-top: 5px;"> |
| 214 | 215 | <?php /* translators: %s is replaced by the time ago */ ?> |
| 215 | 216 | <?php echo esc_html( sprintf(__('%s ago', 'fluent-community'), esc_html(human_time_diff(strtotime($notification->created_at), current_time('timestamp'))))); ?> |
| @@ -262,8 +263,9 @@ | ||
| 262 | 263 | 'permalink' => $permalink, |
| 263 | 264 | 'space_name' => $post->space ? $post->space->title : '', |
| 264 | 265 | 'hide_publish' => 'yes', |
| 265 | 266 | 'show_read_more' => 'yes', |
| 267 | + 'linkColor' => Utility::getThemeColor(), | |
| 266 | 268 | 'timestamp' => human_time_diff(strtotime($post->created_at), current_time('timestamp')) |
| 267 | 269 | ]); |
| 268 | 270 | |
| 269 | 271 | $html .= $blockEnd; |