diff --git a/bskyweb/templates/profile.html b/bskyweb/templates/profile.html
index cc33ed531..bb5e9381a 100644
--- a/bskyweb/templates/profile.html
+++ b/bskyweb/templates/profile.html
@@ -51,6 +51,41 @@
{% endif %}
+
+
{% endif -%}
{%- endblock %}
--
2.51.2
From caa7736035af45957b2af62ea0efa56397888401 Mon Sep 17 00:00:00 2001
From: Elijah Seed-Arita
Date: Wed, 27 Aug 2025 21:27:13 -0700
Subject: [PATCH 2/4] feat: post.html structured content, wip
---
bskyweb/templates/post.html | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html
index 983f84535..23cde8aef 100644
--- a/bskyweb/templates/post.html
+++ b/bskyweb/templates/post.html
@@ -56,6 +56,41 @@
+
{%- elif requiresAuth and profileHandle -%}
--
2.51.2
From a322ae412ae10217804ddef1568fabd3c15a7635 Mon Sep 17 00:00:00 2001
From: Elijah Seed-Arita
Date: Wed, 27 Aug 2025 21:27:50 -0700
Subject: [PATCH 3/4] feat: profile.html escapejs
---
bskyweb/templates/profile.html | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/bskyweb/templates/profile.html b/bskyweb/templates/profile.html
index bb5e9381a..8fc7b67ce 100644
--- a/bskyweb/templates/profile.html
+++ b/bskyweb/templates/profile.html
@@ -56,14 +56,14 @@
{
"@context": "https://schema.org",
"@type": "ProfilePage",
- "dateCreated": "{{ profileView.CreatedAt }}",
+ "dateCreated": "{{ profileView.CreatedAt|escapejs }}",
"mainEntity": {
"@type": "Person",
- "name": "{{ profileView.DisplayName }}",
- "alternateName": "@{{ profileView.Handle }}",
- "identifier": "{{ profileView.Did }}",
- "description": "{{ profileView.Description }}",
- "image": "{{ profileView.Avatar }}",
+ "name": "{{ profileView.DisplayName|escapejs }}",
+ "alternateName": "@{{ profileView.Handle|escapejs }}",
+ "identifier": "{{ profileView.Did|escapejs }}",
+ "description": "{{ profileView.Description|escapejs }}",
+ "image": "{{ profileView.Avatar|escapejs }}",
"interactionStatistic": [
{
"@type": "InteractionCounter",
--
2.51.2
From 305ea8bdfb251f2c4a18cacb0e7b6393e33125d7 Mon Sep 17 00:00:00 2001
From: Elijah Seed-Arita
Date: Wed, 27 Aug 2025 21:41:49 -0700
Subject: [PATCH 4/4] fix: remove escapejs and fix profile issues
---
bskyweb/templates/post.html | 10 +++++-----
bskyweb/templates/profile.html | 16 ++++++++--------
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html
index 23cde8aef..ff21aaca1 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 8fc7b67ce..bb552ef47 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 }}
- },
+ }
]
}
}