Documentation
¶
Overview ¶
Package mastodon holds everything the node needs for the Mastodon bridge. The node itself stays unaware of the ActivityPub gateway: this package only tags bridged users with a foreign network and seeds a single entry account whose home node is the gateway, so it resolves like any other remote user.
Index ¶
Constants ¶
View Source
const ( // Network is the User.Network tag for accounts bridged in from Mastodon. Network = "mastodon" // GatewayNodeID is the libp2p peer id of the ActivityPub gateway, // deterministically derived from its fixed seed. It is the home node of // every bridged Mastodon user. GatewayNodeID = "12D3KooWRyHvpYFjCzorxuSyXFigPfhYaHh1GW1JmwQJSPdmj4JK" // EntryHandle is the single Mastodon account seeded locally as the entry // point into the Fediverse; its followings lead to other Mastodon accounts. EntryHandle = "warpnet@mastodon.social" )
Variables ¶
This section is empty.
Functions ¶
func SeedEntryUser ¶ added in v0.7.244
func SeedEntryUser(repo UserSeeder)
SeedEntryUser inserts the bridged Mastodon entry account so it is discoverable/searchable locally; opening it streams to the gateway node.
Types ¶
Click to show internal directories.
Click to hide internal directories.