2
0
Fork 0

Fix output if local account redirect

main
Astra 2024-06-17 20:13:45 +01:00
parent 11730a208e
commit 5526fb5391
1 changed files with 3 additions and 0 deletions

3
db.go
View File

@ -50,6 +50,9 @@ func generateOutput() {
for _, acct := range accts {
a := findMigration(db, acct.TargetAccountID)
ghacct := getAccount(db, acct.AccountID)
if a.Domain == "" {
a.Domain = "gearheads.social"
}
fmt.Printf("redirects[\"%s@gearheads.social\"] = []string{\"%s\", \"%s\"}\n", ghacct.Username, a.Username, a.Domain)
}
}