Browse Source

eliminatoring the api version from params

master
Christian Mueller 12 years ago
parent
commit
3e28dd691e
  1. 2
      src/notehub/api.clj

2
src/notehub/api.clj

@ -97,7 +97,7 @@
(when (blank? note) "note is empty")])] (when (blank? note) "note is empty")])]
(if (empty? errors) (if (empty? errors)
(let [[year month day] (map str (get-date)) (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 %)) raw-title (filter #(or (= \- %) (Character/isLetterOrDigit %))
(-> note derive-title trim (sreplace " " "-") lower-case)) (-> note derive-title trim (sreplace " " "-") lower-case))
max-length (get-setting :max-title-length #(Integer/parseInt %) 80) max-length (get-setting :max-title-length #(Integer/parseInt %) 80)

Loading…
Cancel
Save