Skip to content

Commit 305ea8b

Browse files
committed
fix: remove escapejs and fix profile issues
1 parent a322ae4 commit 305ea8b

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

bskyweb/templates/post.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@
6262
"@type": "DiscussionForumPosting",
6363
"author": {
6464
"@type": "Person",
65-
"name": "{{ postView.Author.DisplayName|escapejs }}",
66-
"url": "https://bsky.app/@{{ postView.Author.Handle|escapejs }}"
65+
"name": "{{ postView.Author.DisplayName }}",
66+
"url": "https://bsky.app/profile/{{ postView.Author.Handle }}"
6767
},
6868
{%- if postText %}
69-
"text": "{{ postText|escapejs }}",
69+
"text": "{{ postText }}",
7070
{% endif %}
7171
{%- if imageThumbUrls %}
72-
"image": "{{ imageThumbUrls[0]|escapejs }}",
72+
"image": "{{ imageThumbUrls[0] }}",
7373
{% endif %}
74-
"datePublished": "{{ postView.IndexedAt|escapejs }}",
74+
"datePublished": "{{ postView.IndexedAt }}",
7575
"interactionStatistic": [
7676
{
7777
"@type": "InteractionCounter",

bskyweb/templates/profile.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@
5656
{
5757
"@context": "https://schema.org",
5858
"@type": "ProfilePage",
59-
"dateCreated": "{{ profileView.CreatedAt|escapejs }}",
59+
"dateCreated": "{{ profileView.CreatedAt }}",
6060
"mainEntity": {
6161
"@type": "Person",
62-
"name": "{{ profileView.DisplayName|escapejs }}",
63-
"alternateName": "@{{ profileView.Handle|escapejs }}",
64-
"identifier": "{{ profileView.Did|escapejs }}",
65-
"description": "{{ profileView.Description|escapejs }}",
66-
"image": "{{ profileView.Avatar|escapejs }}",
62+
"name": "{{ profileView.DisplayName }}",
63+
"alternateName": "@{{ profileView.Handle }}",
64+
"identifier": "{{ profileView.Did }}",
65+
"description": "{{ profileView.Description }}",
66+
"image": "{{ profileView.Avatar }}",
6767
"interactionStatistic": [
6868
{
6969
"@type": "InteractionCounter",
7070
"interactionType": "https://schema.org/FollowAction",
7171
"userInteractionCount": {{ profileView.FollowersCount }}
72-
},
72+
}
7373
],
7474
"agentInteractionStatistic": [
7575
{
@@ -81,7 +81,7 @@
8181
"@type": "InteractionCounter",
8282
"interactionType": "https://schema.org/WriteAction",
8383
"userInteractionCount": {{ profileView.PostsCount }}
84-
},
84+
}
8585
]
8686
}
8787
}

0 commit comments

Comments
 (0)