2
0
Fork 0

Compare commits

..

No commits in common. "ed3d78ca7a987b5210ab4092c42e714050a6c56a" and "11730a208e29c18c1c56f8d49fda7684bba9ea4c" have entirely different histories.

2 changed files with 0 additions and 44 deletions

3
db.go
View File

@ -50,9 +50,6 @@ 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)
} }
} }

41
main.go
View File

@ -44,47 +44,6 @@ func main() {
redirects["ducky@gearheads.social"] = []string{"ducky", "ap.zio.sh"} redirects["ducky@gearheads.social"] = []string{"ducky", "ap.zio.sh"}
redirects["creativeicing@gearheads.social"] = []string{"CreativeIcing", "rubber.social"} redirects["creativeicing@gearheads.social"] = []string{"CreativeIcing", "rubber.social"}
redirects["gearbound@gearheads.social"] = []string{"gearbound", "rubber.social"} redirects["gearbound@gearheads.social"] = []string{"gearbound", "rubber.social"}
redirects["theducky@gearheads.social"] = []string{"ducky", "zio.sh"}
redirects["TinkerGear@gearheads.social"] = []string{"TinkerGear", "woof.group"}
redirects["gearedrock@gearheads.social"] = []string{"gearedrock", "rubber.social"}
redirects["Jaxon@gearheads.social"] = []string{"Jaxon", "woof.group"}
redirects["PupNirru@gearheads.social"] = []string{"PupNirru", "rubber.social"}
redirects["queerbeetfetischboy@gearheads.social"] = []string{"queerbeetgearhead", "gearheads.social"}
redirects["Vekton@gearheads.social"] = []string{"Vekton", "rubber.social"}
redirects["gearfrk11814@gearheads.social"] = []string{"Gearfreak_OFR", "gearheads.social"}
redirects["gearlicious@gearheads.social"] = []string{"gearlicious", "rubber.social"}
redirects["Duke_Albert@gearheads.social"] = []string{"Duke_Albert", "mastodon.social"}
redirects["rbbrbts@gearheads.social"] = []string{"queer_workwear", "rubber.social"}
redirects["second2742@gearheads.social"] = []string{"shyny_gear", "rubber.social"}
redirects["dabg0@gearheads.social"] = []string{"dabg0", "mastodon.social"}
redirects["gearguin@gearheads.social"] = []string{"Gearguin", "rubber.social"}
redirects["Halipuppeh@gearheads.social"] = []string{"Halipuppeh", "rubber.social"}
redirects["snoopypup@gearheads.social"] = []string{"snoopy", "woof.group"}
redirects["snakebite@gearheads.social"] = []string{"Snakebite", "rubber.social"}
redirects["asciran@gearheads.social"] = []string{"asciran", "woof.group"}
redirects["kometMUC@gearheads.social"] = []string{"kometMUC", "woof.group"}
redirects["pupsparkle@gearheads.social"] = []string{"pupsparkle", "rubber.social"}
redirects["pupkairo@gearheads.social"] = []string{"pupkairo", "woof.group"}
redirects["qsp@gearheads.social"] = []string{"qsp", "rubber.social"}
redirects["twincitypup@gearheads.social"] = []string{"twincitypup", "woof.group"}
redirects["shyny_gear@gearheads.social"] = []string{"shyny_gear", "rubber.social"}
redirects["mute77@gearheads.social"] = []string{"mute77", "rubber.social"}
redirects["Gearweti@gearheads.social"] = []string{"Gearweti", "rubber.social"}
redirects["NeyosBoosts@gearheads.social"] = []string{"NeyosBoosts", "rubber.social"}
redirects["cphFFsub@gearheads.social"] = []string{"cphFFsub", "woof.group"}
redirects["Lthman@gearheads.social"] = []string{"FFmanCPH", "woof.group"}
redirects["RTFM@gearheads.social"] = []string{"RTFM", "rubber.social"}
redirects["bondageflo@gearheads.social"] = []string{"bondageflo", "rubber.social"}
redirects["masterhusband@gearheads.social"] = []string{"masterhusband", "woof.group"}
redirects["rgemaster@gearheads.social"] = []string{"RGEMaster", "rubber.social"}
redirects["GaySlaveHusband@gearheads.social"] = []string{"GaySlaveHusband", "woof.group"}
redirects["arcticopsmx@gearheads.social"] = []string{"arcticopsmx", "woof.group"}
redirects["Red_Fox703@gearheads.social"] = []string{"red_fox703", "woof.group"}
redirects["LeatherAlphaskin@gearheads.social"] = []string{"LeatherAlphaSkin", "woof.group"}
redirects["gregingear@gearheads.social"] = []string{"gregingear", "rubber.social"}
redirects["rumble@gearheads.social"] = []string{"rumble", "rubber.social"}
redirects["uniformgearhead@gearheads.social"] = []string{"uniformgearhead", "gear.pictures"}
redirects["superpsyze@gearheads.social"] = []string{"superpsyze", "rubber.social"}
http.HandleFunc("/.well-known/webfinger", HandleWebfinger) http.HandleFunc("/.well-known/webfinger", HandleWebfinger)
http.ListenAndServe(":8888", nil) http.ListenAndServe(":8888", nil)