eliminatoring the api version from params

This commit is contained in:
Christian Mueller
2014-02-17 23:31:25 +01:00
parent c1519668ed
commit 3e28dd691e
+1 -1
View File
@@ -97,7 +97,7 @@
(when (blank? note) "note is empty")])]
(if (empty? errors)
(let [[year month day] (map str (get-date))
params (dissoc params :note :pid :signature :password)
params (dissoc params :note :pid :signature :password :version)
raw-title (filter #(or (= \- %) (Character/isLetterOrDigit %))
(-> note derive-title trim (sreplace " " "-") lower-case))
max-length (get-setting :max-title-length #(Integer/parseInt %) 80)