tangled mirror of catsky-🐱 Soothing soft social-app fork with all the niche toggles! (Unofficial); for issues and PRs please put them on github:NekoDrone/catsky-social

Merge pull request #67 from NekoDrone/feat/opengraph

refactor: change url for go server appview

authored by serenity and committed by GitHub bbc070aa 1c37039c

Changed files
+28 -28
bskyweb
+1 -1
bskyweb/cmd/bskyweb/main.go
··· 36 36 &cli.StringFlag{ 37 37 Name: "appview-host", 38 38 Usage: "scheme, hostname, and port of PDS instance", 39 - Value: "http://localhost:2584", 39 + Value: "http://public.api.bsky.app", 40 40 // retain old PDS env var for easy transition 41 41 EnvVars: []string{"ATP_APPVIEW_HOST", "ATP_PDS_HOST"}, 42 42 },
+3 -3
bskyweb/templates/base.html
··· 92 92 <link rel="icon" type="image/png" sizes="16x16" href="{{ staticCDNHost }}/static/favicon-16x16.png"> 93 93 <link rel="mask-icon" href="{{ staticCDNHost }}/static/safari-pinned-tab.svg" color="#1185fe"> 94 94 <meta name="theme-color"> 95 - <meta name="application-name" content="Bluesky"> 95 + <meta name="application-name" content="Catsky"> 96 96 <meta name="generator" content="bskyweb"> 97 - <meta property="og:site_name" content="Bluesky Social"> 97 + <meta property="og:site_name" content="Catsky Social"> 98 98 <meta property="og:logo" content="{{ favicon }}"> 99 99 <meta name="twitter:site" content="@bluesky" /> 100 100 <link type="application/activity+json" href="" /> ··· 113 113 <noscript> 114 114 <h1 lang="en">JavaScript Required</h1> 115 115 <p lang="en">This is a heavily interactive web application, and JavaScript is required. Simple HTML interfaces are possible, but that is not what this is. 116 - <p lang="en">Learn more about Bluesky at <a href="https://bsky.social">bsky.social</a> and <a href="https://atproto.com">atproto.com</a>. 116 + <p lang="en">Learn more about Bluesky at <a href="https://bsky.social">bsky.social</a>, <a href="https://atproto.com">atproto.com</a>, and this fork of Bluesky (Catsky) at <a href="https://github.com/NekoDrone/catsky-social/">GitHub</a>. 117 117 {% block noscript_extra %}{% endblock %} 118 118 </noscript> 119 119 {% endblock -%}
+2 -2
bskyweb/templates/error.html
··· 1 1 {% extends "base.html" %} 2 2 3 - {% block head_title %}Error {{ statusCode }} - Bluesky{% endblock %} 3 + {% block head_title %}Error {{ statusCode }} - Catsky{% endblock %} 4 4 5 5 {% block noscript_extra %} 6 6 {%- if statusCode == 404 %} ··· 24 24 <h1>{{ statusCode }}: Server Error</h1> 25 25 <p>Sorry about that! Our <a href="https://bluesky.statuspage.io/">Status Page</a> might have more context. 26 26 {% endif %} 27 - {% endblock -%} 27 + {% endblock -%}
+3 -3
bskyweb/templates/feed.html
··· 2 2 3 3 {% block head_title %} 4 4 {%- if feedView -%} 5 - {{ feedView.DisplayName }} by @{{ feedView.Creator.Handle }} | Bluesky Feed 5 + {{ feedView.DisplayName }} by @{{ feedView.Creator.Handle }} | Catsky Feed 6 6 {%- else -%} 7 - Bluesky 7 + Catsky 8 8 {%- endif -%} 9 9 {% endblock %} 10 10 11 11 {% block html_head_extra -%} 12 12 {%- if feedView -%} 13 - <meta property="og:site_name" content="Bluesky Social"> 13 + <meta property="og:site_name" content="Catsky Social"> 14 14 <meta property="og:type" content="website"> 15 15 {%- if requestURI %} 16 16 <meta property="og:url" content="{{ requestURI }}">
+11 -11
bskyweb/templates/home.html
··· 1 1 {% extends "base.html" %} 2 2 3 - {% block head_title %}Bluesky{% endblock %} 3 + {% block head_title %}Catsky{% endblock %} 4 4 5 5 {% block html_head_extra -%} 6 - <meta property="og:title" content="Bluesky" /> 7 - <meta name="twitter:title" content="Bluesky" /> 6 + <meta property="og:title" content="Catsky" /> 7 + <meta name="twitter:title" content="Catsky" /> 8 8 9 - <meta name="description" content="Social media as it should be. Find your community among millions of users, unleash your creativity, and have some fun again." /> 10 - <meta name="og:description" content="Social media as it should be. Find your community among millions of users, unleash your creativity, and have some fun again." /> 11 - <meta name="twitter:description" content="Social media as it should be. Find your community among millions of users, unleash your creativity, and have some fun again." /> 9 + <meta name="description" content="mrrp mrrowww media as it should be. find your meowmunity among hundreds of cats, unleash your meows, and have some fun again :3" /> 10 + <meta name="og:description" content="mrrp mrrowww media as it should be. find your meowmunity among hundreds of cats, unleash your meows, and have some fun again :3" /> 11 + <meta name="twitter:description" content="mrrp mrrowww media as it should be. find your meowmunity among hundreds of cats, unleash your meows, and have some fun again :3" /> 12 12 13 - <meta property="og:url" content="https://bsky.app" /> 14 - <meta name="twitter:url" content="https://bsky.app" /> 15 - <link rel="canonical" href="https://bsky.app" /> 13 + <meta property="og:url" content="https://catsky.social" /> 14 + <meta name="twitter:url" content="https://catsky.social" /> 15 + <link rel="canonical" href="https://catsky.social" /> 16 16 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" /> 17 + <meta property="og:image" content="https://pds.tgirl.cloud/xrpc/com.atproto.sync.getBlob?did=did:plc:ctg5hooybw3rquejsfebsegs&cid=bafkreianap3iqgxlifqssuhut2ggiuitpmltw3lfvzq7tnzbsv26npzfxq" /> 18 + <meta property="twitter:image" content="https://pds.tgirl.cloud/xrpc/com.atproto.sync.getBlob?did=did:plc:ctg5hooybw3rquejsfebsegs&cid=bafkreianap3iqgxlifqssuhut2ggiuitpmltw3lfvzq7tnzbsv26npzfxq" /> 19 19 20 20 <meta name="twitter:card" content="summary_large_image" /> 21 21 {%- endblock %}
+3 -3
bskyweb/templates/post.html
··· 2 2 3 3 {% block head_title %} 4 4 {%- if postView -%} 5 - @{{ postView.Author.Handle }} on Bluesky 5 + @{{ postView.Author.Handle }} on Catsky 6 6 {%- elif requiresAuth and profileHandle -%} 7 - @{{ profileHandle }} on Bluesky 7 + @{{ profileHandle }} on Catsky 8 8 {%- else -%} 9 - Bluesky 9 + Catsky 10 10 {%- endif -%} 11 11 {% endblock %} 12 12
+3 -3
bskyweb/templates/profile.html
··· 2 2 3 3 {% block head_title %} 4 4 {%- if profileView -%} 5 - @{{ profileView.Handle }} on Bluesky 5 + @{{ profileView.Handle }} on Catsky 6 6 {%- else -%} 7 - Bluesky 7 + Catsky 8 8 {%- endif -%} 9 9 {% endblock %} 10 10 11 11 {% block html_head_extra -%} 12 - <meta property="og:site_name" content="Bluesky Social"> 12 + <meta property="og:site_name" content="Catsky Social"> 13 13 <meta property="og:type" content="profile"> 14 14 {%- if requestURI %} 15 15 <meta property="og:url" content="{{ requestURI }}">
+2 -2
bskyweb/templates/starterpack.html
··· 9 9 <meta property="og:image" content="{{ imgThumbUrl }}"> 10 10 <meta property="twitter:image" content="{{ imgThumbUrl }}"> 11 11 {%- else -%} 12 - <meta property="og:image" content="https://bsky.app/static/social-card-default-gradient.png" /> 13 - <meta property="twitter:image" content="https://bsky.app/static/social-card-default-gradient.png" /> 12 + <meta property="og:image" content="https://pds.tgirl.cloud/xrpc/com.atproto.sync.getBlob?did=did:plc:ctg5hooybw3rquejsfebsegs&cid=bafkreianap3iqgxlifqssuhut2ggiuitpmltw3lfvzq7tnzbsv26npzfxq" /> 13 + <meta property="twitter:image" content="https://pds.tgirl.cloud/xrpc/com.atproto.sync.getBlob?did=did:plc:ctg5hooybw3rquejsfebsegs&cid=bafkreianap3iqgxlifqssuhut2ggiuitpmltw3lfvzq7tnzbsv26npzfxq" /> 14 14 {% endif -%} 15 15 <meta name="twitter:card" content="summary_large_image" /> 16 16 {%- if title %}