about summary refs log tree commit diff
path: root/bskyweb
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-08-26 11:32:08 -0500
committerGitHub <noreply@github.com>2025-08-26 11:32:08 -0500
commit6a16ef83f61da2955e60b7fcfa017e1f042e3130 (patch)
treed70652d683cc8bdaf8fa9fa188d15fb8de6a70ff /bskyweb
parent8ec20026c042e1f26224ef2967dad6f0386e1eca (diff)
downloadvoidsky-6a16ef83f61da2955e60b7fcfa017e1f042e3130.tar.zst
Fix default opengraph (#8872)
* Fix default opengraph

* Add avatar back

* Remove default og images
Diffstat (limited to 'bskyweb')
-rw-r--r--bskyweb/templates/base.html1
-rw-r--r--bskyweb/templates/home.html1
-rw-r--r--bskyweb/templates/post.html5
3 files changed, 5 insertions, 2 deletions
diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html
index d72494da1..715b39fd2 100644
--- a/bskyweb/templates/base.html
+++ b/bskyweb/templates/base.html
@@ -95,6 +95,7 @@
   <meta name="application-name" content="Bluesky">
   <meta name="generator" content="bskyweb">
   <meta property="og:site_name" content="Bluesky Social" />
+  <meta name="twitter:site" content="@bluesky" />
   <link type="application/activity+json" href="" />
 
   {% block html_head_extra -%}{%- endblock %}
diff --git a/bskyweb/templates/home.html b/bskyweb/templates/home.html
index 9e5c670a2..0e148b37e 100644
--- a/bskyweb/templates/home.html
+++ b/bskyweb/templates/home.html
@@ -17,7 +17,6 @@
   <meta property="og:image" content="https://bsky.app/static/social-card-default-gradient.png" />
   <meta property="twitter:image" content="https://bsky.app/static/social-card-default-gradient.png"  />
 
-  <meta name="twitter:site" content="@bluesky" />
   <meta name="twitter:card" content="summary_large_image" />
 {%- endblock %}
 
diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html
index 1f3f6da4e..6473bc284 100644
--- a/bskyweb/templates/post.html
+++ b/bskyweb/templates/post.html
@@ -24,15 +24,18 @@
   {%- if postText %}
   <meta name="description" content="{{ postText }}">
   <meta property="og:description" content="{{ postText }}">
+  <meta property="twitter:description" content="{{ postText }}">
   {% endif -%}
   {%- if imgThumbUrls %}
   {% for imgThumbUrl in imgThumbUrls %}
   <meta property="og:image" content="{{ imgThumbUrl }}">
+  <meta property="twitter:image" content="{{ imgThumbUrl }}">
   {% endfor %}
   <meta name="twitter:card" content="summary_large_image">
   {%- elif postView.Author.Avatar %}
-  {# Don't use avatar image in cards; usually looks bad #}
   <meta name="twitter:card" content="summary">
+  <meta property="og:image" content="{{ postView.Author.Avatar }}">
+  <meta property="twitter:image" content="{{ postView.Author.Avatar }}">
   {% endif %}
   <meta name="twitter:label1" content="Posted At">
   <meta name="twitter:value1" content="{{ postView.IndexedAt }}">