updated the file size (8mb instead of 8kb)

master
Zachary Epps 4 years ago
parent 6abce698ea
commit a7a18c3bd4
  1. 5
      main.go

@ -66,6 +66,9 @@ func (p *Crossposter) Post(post *reddit.Post) error {
}
func DownloadImage(url string) (string, error) {
// something with imgur api?
// gfycat -> https://giant. {link} .mp4
parsedUrl := strings.Split(url, "/")
fileName := parsedUrl[len(parsedUrl) - 1]
@ -95,7 +98,7 @@ const (
AppName string = "OWP Crossposter"
ImageSaveDir string = "/tmp/OWP/"
DeleteAfterPost bool = true
MaxDataSize int64 = 8192
MaxDataSize int64 = 8388608 //bytes -- 8mb
)
var (

Loading…
Cancel
Save