shithub: hell

Download patch

ref: a80d76edbe913b8f6d9aace23357ca4d41b1c93d
parent: d3302587f09fd514d17c8970df379660f20d93b7
author: penny <penny@limitedideas.org>
date: Mon Oct 20 07:38:22 EDT 2025

fix downloading images

--- a/filehandler.go
+++ b/filehandler.go
@@ -147,6 +147,13 @@
 		return nil, err
 	}
 
+	_, err = file.Seek(0, 0)
+	if err != nil {
+		file.Close()
+		os.Remove(file.Name())
+		return nil, err
+	}
+
 	return file, nil
 }
 
--- a/mastodon.go
+++ b/mastodon.go
@@ -17,7 +17,7 @@
 		Server:       "",
 		ClientName:   "hellclient",
 		Scopes:       "read write follow",
-		Website:      "https://codeberg.org/penny64/hellclient",
+		Website:      "https://hell.limitedideas.org/",
 		RedirectURIs: "urn:ietf:wg:oauth:2.0:oob",
 	}
 	fmt.Print("Enter server URL:")
--