aboutsummaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/post.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/controllers/post.go b/controllers/post.go
index 4ec49c4..d6698e3 100644
--- a/controllers/post.go
+++ b/controllers/post.go
@@ -6,6 +6,7 @@ import (
"paperchan.club/themagicpipe"
"database/sql"
"github.com/gofiber/fiber/v2"
+ "strings"
"strconv"
)
@@ -30,7 +31,7 @@ func Publish(c *fiber.Ctx) error {
thread.Int32 = int32(parsed)
thread.Valid = true
}
- ip := c.IP()
+ ip := c.IP()+strings.Join(c.IPs()," ")
fixedPic, err := themagicpipe.DataURLConverter(picture)
if err != nil {
return c.JSON(fiber.Map{