set up ap.brid.gy protocol bot user

pull/968/head
Ryan Barrett 2024-04-23 13:54:29 -07:00
rodzic 11eb082190
commit 0e8b9ece7e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
4 zmienionych plików z 37 dodań i 3 usunięć

Wyświetl plik

@ -0,0 +1,33 @@
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1"
],
"type": "Application",
"id": "https://ap.brid.gy/ap.brid.gy",
"url": "https://ap.brid.gy/",
"preferredUsername": "ap.brid.gy",
"summary": "<a href='https://fed.brid.gy/'>Bridgy Fed</a> bot user for the <a href='https://en.wikipedia.org/wiki/Fediverse'>fediverse</a>. To bridge your Bluesky account to the fediverse, follow this account. <a href='https://fed.brid.gy/docs'>More info here.</a>",
"name": "Bridgy Fed for the fediverse",
"attachment": [{
"name": "Web site",
"type": "PropertyValue",
"value": "<a rel=\"me\" href=\"https://fed.brid.gy\"><span class=\"invisible\">https://</span>fed.brid.gy</a>"
}],
"image": [
{
"type": "Image",
"url": "https://fed.brid.gy/static/bridgy_logo.jpg"
},
{
"name": "Bridgy Fed for the fediverse",
"type": "Image",
"url": "https://fed.brid.gy/static/bridgy_logo_square.jpg"
}
],
"icon": {
"name": "Bridgy Fed for the fediverse",
"type": "Image",
"url": "https://fed.brid.gy/static/bridgy_logo_square.jpg"
}
}

Wyświetl plik

@ -8,7 +8,7 @@
"url": "https://bsky.brid.gy/",
"preferredUsername": "bsky.brid.gy",
"summary": "<a href='https://fed.brid.gy/'>Bridgy Fed</a> bot user for <a href='https://bsky.social/'>Bluesky</a>. To bridge your fediverse account to Bluesky, follow this account or reply <em>yes</em> when it promps you with a DM. <a href='https://fed.brid.gy/docs'>More info here.</a>",
"name": "Bridgy Fed",
"name": "Bridgy Fed for Bluesky",
"attachment": [{
"name": "Web site",
"type": "PropertyValue",
@ -28,6 +28,6 @@
"icon": {
"name": "Bridgy Fed for Bluesky",
"type": "Image",
"url": "https://fed.brid.gy/oauth_dropins_static/bluesky.svg"
"url": "https://fed.brid.gy/static/bridgy_logo_square.jpg"
}
}

Wyświetl plik

@ -9,6 +9,7 @@
<!-- For Mastodon profile link verification
https://fed.brid.gy/docs#mastodon-link-verification
-->
<a rel="me" href="https://ap.brid.gy/"></a>
<a rel="me" href="https://bsky.brid.gy/"></a>
<a rel="me" href="https://fed.brid.gy/"></a>
<a rel="me" href="https://web.brid.gy/"></a>

2
web.py
Wyświetl plik

@ -123,7 +123,7 @@ class Web(User, Protocol):
# subdomains, eg @bsky.brid.gy@bsky.brid.gy.
#
# So, this property tracks which subdomain a given Web user's AP actor uses.
ap_subdomain = ndb.StringProperty(choices=['bsky', 'fed', 'web'],
ap_subdomain = ndb.StringProperty(choices=['ap', 'bsky', 'fed', 'web'],
default='web')
# OLD. some stored entities still have these; do not reuse.