fix: remove escapejs and fix profile issues
This commit is contained in:
@@ -62,16 +62,16 @@
|
|||||||
"@type": "DiscussionForumPosting",
|
"@type": "DiscussionForumPosting",
|
||||||
"author": {
|
"author": {
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
"name": "{{ postView.Author.DisplayName|escapejs }}",
|
"name": "{{ postView.Author.DisplayName }}",
|
||||||
"url": "https://bsky.app/@{{ postView.Author.Handle|escapejs }}"
|
"url": "https://bsky.app/profile/{{ postView.Author.Handle }}"
|
||||||
},
|
},
|
||||||
{%- if postText %}
|
{%- if postText %}
|
||||||
"text": "{{ postText|escapejs }}",
|
"text": "{{ postText }}",
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- if imageThumbUrls %}
|
{%- if imageThumbUrls %}
|
||||||
"image": "{{ imageThumbUrls[0]|escapejs }}",
|
"image": "{{ imageThumbUrls[0] }}",
|
||||||
{% endif %}
|
{% endif %}
|
||||||
"datePublished": "{{ postView.IndexedAt|escapejs }}",
|
"datePublished": "{{ postView.IndexedAt }}",
|
||||||
"interactionStatistic": [
|
"interactionStatistic": [
|
||||||
{
|
{
|
||||||
"@type": "InteractionCounter",
|
"@type": "InteractionCounter",
|
||||||
|
|||||||
@@ -56,20 +56,20 @@
|
|||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "ProfilePage",
|
"@type": "ProfilePage",
|
||||||
"dateCreated": "{{ profileView.CreatedAt|escapejs }}",
|
"dateCreated": "{{ profileView.CreatedAt }}",
|
||||||
"mainEntity": {
|
"mainEntity": {
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
"name": "{{ profileView.DisplayName|escapejs }}",
|
"name": "{{ profileView.DisplayName }}",
|
||||||
"alternateName": "@{{ profileView.Handle|escapejs }}",
|
"alternateName": "@{{ profileView.Handle }}",
|
||||||
"identifier": "{{ profileView.Did|escapejs }}",
|
"identifier": "{{ profileView.Did }}",
|
||||||
"description": "{{ profileView.Description|escapejs }}",
|
"description": "{{ profileView.Description }}",
|
||||||
"image": "{{ profileView.Avatar|escapejs }}",
|
"image": "{{ profileView.Avatar }}",
|
||||||
"interactionStatistic": [
|
"interactionStatistic": [
|
||||||
{
|
{
|
||||||
"@type": "InteractionCounter",
|
"@type": "InteractionCounter",
|
||||||
"interactionType": "https://schema.org/FollowAction",
|
"interactionType": "https://schema.org/FollowAction",
|
||||||
"userInteractionCount": {{ profileView.FollowersCount }}
|
"userInteractionCount": {{ profileView.FollowersCount }}
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
"agentInteractionStatistic": [
|
"agentInteractionStatistic": [
|
||||||
{
|
{
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
"@type": "InteractionCounter",
|
"@type": "InteractionCounter",
|
||||||
"interactionType": "https://schema.org/WriteAction",
|
"interactionType": "https://schema.org/WriteAction",
|
||||||
"userInteractionCount": {{ profileView.PostsCount }}
|
"userInteractionCount": {{ profileView.PostsCount }}
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user