diff --git a/fedilogue/config.go b/fedilogue/config.go index 611250e..9556873 100644 --- a/fedilogue/config.go +++ b/fedilogue/config.go @@ -33,7 +33,6 @@ type Proxy struct { // Settings - Configuration file structure type Settings struct { - Autostart []string `"json:autostart"` Crawl bool `"json:crawl"` Banned []string `"json:banned"` Alwaysbot []string `"json:alwaysbot"` diff --git a/fedilogue/config.jsonc.sample b/fedilogue/config.jsonc.sample index 88b946e..d83520f 100644 --- a/fedilogue/config.jsonc.sample +++ b/fedilogue/config.jsonc.sample @@ -4,16 +4,6 @@ * https://github.com/neoclide/jsonc.vim */ { - /* - * Automatically start following the following instances's public timeline - * If an external account with the same endpoint exists, the autostart - * will use the authenticated to follow - */ - "autostart": [ - "mastodon.social", - "pleroma.site" - ], - // Should pollers automatically crawl "crawl": true, diff --git a/fedilogue/fedilogue.go b/fedilogue/fedilogue.go index df97bfb..3baf6af 100644 --- a/fedilogue/fedilogue.go +++ b/fedilogue/fedilogue.go @@ -95,20 +95,12 @@ func main() { var endpoint string err = rows.Scan(&endpoint) if err != nil { - logErr("Unable to iterate") + logErr("Unable to iterate database, exiting.") return } _, exists := GetRunner(endpoint) if exists == false { - go StartInstance(endpoint) - } - } - - // Start from Autostart list - for _, endpoint := range settings.Autostart { - logInfo("Autostarting " + endpoint) - _, exists := GetRunner(endpoint) - if exists == false { + logInfo("Autostarting " + endpoint) go StartInstance(endpoint) } }