diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html index 23cde8aeff..ff21aaca14 100644 --- a/bskyweb/templates/post.html +++ b/bskyweb/templates/post.html @@ -62,16 +62,16 @@ "@type": "DiscussionForumPosting", "author": { "@type": "Person", - "name": "{{ postView.Author.DisplayName|escapejs }}", - "url": "https://bsky.app/@{{ postView.Author.Handle|escapejs }}" + "name": "{{ postView.Author.DisplayName }}", + "url": "https://bsky.app/profile/{{ postView.Author.Handle }}" }, {%- if postText %} - "text": "{{ postText|escapejs }}", + "text": "{{ postText }}", {% endif %} {%- if imageThumbUrls %} - "image": "{{ imageThumbUrls[0]|escapejs }}", + "image": "{{ imageThumbUrls[0] }}", {% endif %} - "datePublished": "{{ postView.IndexedAt|escapejs }}", + "datePublished": "{{ postView.IndexedAt }}", "interactionStatistic": [ { "@type": "InteractionCounter", diff --git a/bskyweb/templates/profile.html b/bskyweb/templates/profile.html index 8fc7b67ce4..bb552ef47d 100644 --- a/bskyweb/templates/profile.html +++ b/bskyweb/templates/profile.html @@ -56,20 +56,20 @@ { "@context": "https://schema.org", "@type": "ProfilePage", - "dateCreated": "{{ profileView.CreatedAt|escapejs }}", + "dateCreated": "{{ profileView.CreatedAt }}", "mainEntity": { "@type": "Person", - "name": "{{ profileView.DisplayName|escapejs }}", - "alternateName": "@{{ profileView.Handle|escapejs }}", - "identifier": "{{ profileView.Did|escapejs }}", - "description": "{{ profileView.Description|escapejs }}", - "image": "{{ profileView.Avatar|escapejs }}", + "name": "{{ profileView.DisplayName }}", + "alternateName": "@{{ profileView.Handle }}", + "identifier": "{{ profileView.Did }}", + "description": "{{ profileView.Description }}", + "image": "{{ profileView.Avatar }}", "interactionStatistic": [ { "@type": "InteractionCounter", "interactionType": "https://schema.org/FollowAction", "userInteractionCount": {{ profileView.FollowersCount }} - }, + } ], "agentInteractionStatistic": [ { @@ -81,7 +81,7 @@ "@type": "InteractionCounter", "interactionType": "https://schema.org/WriteAction", "userInteractionCount": {{ profileView.PostsCount }} - }, + } ] } }