| @@ -1065,8 +1065,9 @@ | ||
| 1065 | 1065 | |
| 1066 | 1066 | $content = get_the_content(); |
| 1067 | 1067 | $content = wp_kses_post( $content ); |
| 1068 | 1068 | $content = wpautop( $content ); |
| 1069 | + $content .= Link_Preview::render(); | |
| 1069 | 1070 | |
| 1070 | 1071 | return '<div class="wp-block-friends-post-content">' . $content . '</div>'; |
| 1071 | 1072 | } |
| 1072 | 1073 | |
| @@ -1321,9 +1322,9 @@ | ||
| 1321 | 1322 | array( |
| 1322 | 1323 | 'class' => 'wp-block-friends-author-name', |
| 1323 | 1324 | 'id' => 'page-title', |
| 1324 | 1325 | ) |
| 1325 | - ) . '>' . wp_kses( Feed_Parser_ActivityPub::replace_custom_emojis_for_user( $author->display_name, $author ), Feed_Parser_ActivityPub::get_custom_emoji_allowed_html() ) . '</h2>'; | |
| 1326 | + ) . '>' . wp_kses_post( apply_filters( 'friends_author_display_name_html', esc_html( $author->display_name ), $author->display_name, $author ) ) . '</h2>'; | |
| 1326 | 1327 | } |
| 1327 | 1328 | |
| 1328 | 1329 | /** |
| 1329 | 1330 | * Render the friends/author-description block. |