aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.go b/main.go
index ca8b9a0..15f232a 100644
--- a/main.go
+++ b/main.go
@@ -8,6 +8,7 @@ import (
"io/ioutil"
"log"
"net/http"
+ "path/filepath"
"regexp"
irc "github.com/fluffle/goirc/client"
@@ -50,7 +51,11 @@ func matrix2gemini(conn *irc.Conn, line *irc.Line) {
conn.Privmsg(
channel,
- fmt.Sprintf("better: %s/%s", *baseurl, tmpfile.Name()),
+ fmt.Sprintf(
+ "better: %s/%s",
+ *baseurl,
+ filepath.Base(tmpfile.Name()),
+ ),
)
}
}