Bluesky app fork with some witchin' additions 💫

Fix default opengraph (#8872)

* Fix default opengraph

* Add avatar back

* Remove default og images

authored by

Eric Bailey and committed by
GitHub
6a16ef83 8ec20026

+5 -2
+1
bskyweb/templates/base.html
··· 95 <meta name="application-name" content="Bluesky"> 96 <meta name="generator" content="bskyweb"> 97 <meta property="og:site_name" content="Bluesky Social" /> 98 <link type="application/activity+json" href="" /> 99 100 {% block html_head_extra -%}{%- endblock %}
··· 95 <meta name="application-name" content="Bluesky"> 96 <meta name="generator" content="bskyweb"> 97 <meta property="og:site_name" content="Bluesky Social" /> 98 + <meta name="twitter:site" content="@bluesky" /> 99 <link type="application/activity+json" href="" /> 100 101 {% block html_head_extra -%}{%- endblock %}
-1
bskyweb/templates/home.html
··· 17 <meta property="og:image" content="https://bsky.app/static/social-card-default-gradient.png" /> 18 <meta property="twitter:image" content="https://bsky.app/static/social-card-default-gradient.png" /> 19 20 - <meta name="twitter:site" content="@bluesky" /> 21 <meta name="twitter:card" content="summary_large_image" /> 22 {%- endblock %} 23
··· 17 <meta property="og:image" content="https://bsky.app/static/social-card-default-gradient.png" /> 18 <meta property="twitter:image" content="https://bsky.app/static/social-card-default-gradient.png" /> 19 20 <meta name="twitter:card" content="summary_large_image" /> 21 {%- endblock %} 22
+4 -1
bskyweb/templates/post.html
··· 24 {%- if postText %} 25 <meta name="description" content="{{ postText }}"> 26 <meta property="og:description" content="{{ postText }}"> 27 {% endif -%} 28 {%- if imgThumbUrls %} 29 {% for imgThumbUrl in imgThumbUrls %} 30 <meta property="og:image" content="{{ imgThumbUrl }}"> 31 {% endfor %} 32 <meta name="twitter:card" content="summary_large_image"> 33 {%- elif postView.Author.Avatar %} 34 - {# Don't use avatar image in cards; usually looks bad #} 35 <meta name="twitter:card" content="summary"> 36 {% endif %} 37 <meta name="twitter:label1" content="Posted At"> 38 <meta name="twitter:value1" content="{{ postView.IndexedAt }}">
··· 24 {%- if postText %} 25 <meta name="description" content="{{ postText }}"> 26 <meta property="og:description" content="{{ postText }}"> 27 + <meta property="twitter:description" content="{{ postText }}"> 28 {% endif -%} 29 {%- if imgThumbUrls %} 30 {% for imgThumbUrl in imgThumbUrls %} 31 <meta property="og:image" content="{{ imgThumbUrl }}"> 32 + <meta property="twitter:image" content="{{ imgThumbUrl }}"> 33 {% endfor %} 34 <meta name="twitter:card" content="summary_large_image"> 35 {%- elif postView.Author.Avatar %} 36 <meta name="twitter:card" content="summary"> 37 + <meta property="og:image" content="{{ postView.Author.Avatar }}"> 38 + <meta property="twitter:image" content="{{ postView.Author.Avatar }}"> 39 {% endif %} 40 <meta name="twitter:label1" content="Posted At"> 41 <meta name="twitter:value1" content="{{ postView.IndexedAt }}">