From ac71ea235f27234a34e5005af03935f80a9d1092 Mon Sep 17 00:00:00 2001 From: Caidan Date: Wed, 17 Sep 2025 14:30:10 -0700 Subject: improve: enhance post OpenGraph metadata with engagement data and auth handling (#9046) --- bskyweb/templates/post.html | 45 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) (limited to 'bskyweb/templates/post.html') diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html index 6473bc284..983f84535 100644 --- a/bskyweb/templates/post.html +++ b/bskyweb/templates/post.html @@ -3,6 +3,8 @@ {% block head_title %} {%- if postView -%} @{{ postView.Author.Handle }} on Bluesky +{%- elif requiresAuth and profileHandle -%} + @{{ profileHandle }} on Bluesky {%- else -%} Bluesky {%- endif -%} @@ -11,7 +13,7 @@ {% block html_head_extra -%} {%- if postView -%} - + {%- if requestURI %} @@ -32,17 +34,44 @@ {% endfor %} - {%- elif postView.Author.Avatar %} - + {% else %} + {% endif %} - - + {%- if postView.LikeCount %} + + + {% endif -%} + {%- if postView.ReplyCount %} + + + {% endif -%} + {%- if postView.RepostCount %} + + + {% endif -%} + +{%- elif requiresAuth and profileHandle -%} + + + {%- if requestURI %} + + + {% endif -%} + {%- if profileDisplayName %} + + {% else %} + + {% endif -%} + + + + {% endif -%} {%- endblock %} @@ -56,5 +85,11 @@

{{ postText }}

{{ postView.IndexedAt }}

+{%- elif requiresAuth and profileHandle -%} +
+

Post

+

{{ profileHandle }}

+

This post requires authentication to view.

+
{% endif -%} {%- endblock %} -- cgit 1.4.1