Bluesky app fork with some witchin' additions 💫

Merge pull request #9167 from internet-development/elijaharita/structured-data-name-fallback

fix: show both DisplayName and Handle in google structured data (or only Handle if DisplayName not set)

authored by

jim and committed by
GitHub
d68fc78e 07bcf746

+9
+5
bskyweb/templates/post.html
··· 62 62 "@type": "DiscussionForumPosting", 63 63 "author": { 64 64 "@type": "Person", 65 + {%- if postView.Author.DisplayName %} 65 66 "name": "{{ postView.Author.DisplayName }}", 67 + "alternateName": "@{{ postView.Author.Handle }}", 68 + {% else %} 69 + "name": "@{{ postView.Author.Handle }}", 70 + {% endif -%} 66 71 "url": "https://bsky.app/profile/{{ postView.Author.Handle }}" 67 72 }, 68 73 {%- if postText %}
+4
bskyweb/templates/profile.html
··· 59 59 "dateCreated": "{{ profileView.CreatedAt }}", 60 60 "mainEntity": { 61 61 "@type": "Person", 62 + {%- if profileView.DisplayName %} 62 63 "name": "{{ profileView.DisplayName }}", 63 64 "alternateName": "@{{ profileView.Handle }}", 65 + {% else %} 66 + "name": "@{{ profileView.Handle }}", 67 + {% endif -%} 64 68 "identifier": "{{ profileView.Did }}", 65 69 "description": "{{ profileView.Description }}", 66 70 "image": "{{ profileView.Avatar }}",