ref: ae200213eaf1b3c49bc7a119bbc95f744685c8c6
parent: 8f3e0d3cc7476dc877297f8fe7e9ce308248f93f
author: penny <penny@limitedideas.org>
date: Wed Oct 1 09:53:30 EDT 2025
ask for server url on config!
--- a/mastodon.go
+++ b/mastodon.go
@@ -16,13 +16,14 @@
func ConfigureClient() *mastodon.Client { appConfig := &mastodon.AppConfig{- Server: "https://eldritch.cafe",
+ Server: "",
ClientName: "hellclient",
Scopes: "read write follow",
Website: "https://codeberg.org/penny64/hellclient",
RedirectURIs: "urn:ietf:wg:oauth:2.0:oob",
}
-
+ fmt.Print("Enter server URL:")+ fmt.Scanln(&appConfig.Server)
app, err := mastodon.RegisterApp(context.Background(), appConfig)
if err != nil {log.Fatal(err)
@@ -33,6 +34,7 @@
if err != nil {log.Fatal(err)
}
+
fmt.Printf("Open your browser to \n%s\n and copy/paste the given authroization code\n", u)var userAuthorizationCode string
fmt.Print("Paste the code here:")--
⑨