From 92b11a3926bb85e1cb36459040d473ba45cb0d0c Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Wed, 8 Feb 2023 10:06:22 +0100 Subject: [PATCH] use html version of the link as before --- includes/model/class-post.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/model/class-post.php b/includes/model/class-post.php index 5546c88..b224b82 100644 --- a/includes/model/class-post.php +++ b/includes/model/class-post.php @@ -403,15 +403,15 @@ class Post { */ public function get_post_content_template() { if ( 'excerpt' === \get_option( 'activitypub_post_content_type', 'content' ) ) { - return "[ap_excerpt]\n\n[ap_permalink]"; + return "[ap_excerpt]\n\n[ap_permalink type=\"html\"]"; } if ( 'title' === \get_option( 'activitypub_post_content_type', 'content' ) ) { - return "[ap_title]\n\n[ap_permalink]"; + return "[ap_title]\n\n[ap_permalink type=\"html\"]"; } if ( 'content' === \get_option( 'activitypub_post_content_type', 'content' ) ) { - return "[ap_content]\n\n[ap_hashtags]\n\n[ap_permalink]"; + return "[ap_content]\n\n[ap_hashtags]\n\n[ap_permalink type=\"html\"]"; } // Upgrade from old template codes to shortcodes.