Fix output if local account redirect
parent
11730a208e
commit
5526fb5391
3
db.go
3
db.go
|
@ -50,6 +50,9 @@ func generateOutput() {
|
||||||
for _, acct := range accts {
|
for _, acct := range accts {
|
||||||
a := findMigration(db, acct.TargetAccountID)
|
a := findMigration(db, acct.TargetAccountID)
|
||||||
ghacct := getAccount(db, acct.AccountID)
|
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)
|
fmt.Printf("redirects[\"%s@gearheads.social\"] = []string{\"%s\", \"%s\"}\n", ghacct.Username, a.Username, a.Domain)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue