diff options
Diffstat (limited to 'backend/db/db.go')
| -rw-r--r-- | backend/db/db.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/db/db.go b/backend/db/db.go index af68262..a9631af 100644 --- a/backend/db/db.go +++ b/backend/db/db.go @@ -29,9 +29,9 @@ const TitleLimit = 100 const ContentLimit = 100000 // creates a new paste with title, content and hash, returns the hash of the created paste -func New(ip, content, expiry, title, password, lang string) (string, error) { +func New(content, expiry, title, password, lang string) (string, error) { // generate hash from ip - hash := security.GenerateURI(ip) + hash := security.GenerateURI(content) // check for size of title and content errs := checkLengths(title, content) |