Browse Source

hitting heroku

master
Christian Mueller 12 years ago
parent
commit
ca24da9bc2
  1. 3
      src/notehub/handler.clj
  2. 3
      src/notehub/storage.clj

3
src/notehub/handler.clj

@ -42,9 +42,6 @@
[(keyword (str (name cls) ".markdown")) opts [(keyword (str (name cls) ".markdown")) opts
[:textarea input]])) [:textarea input]]))
(when-not (storage/valid-publisher? "NoteHub")
(storage/register-publisher "NoteHub"))
(defn sanitize (defn sanitize
"Breakes all usages of <script> & <iframe>" "Breakes all usages of <script> & <iframe>"
[input] [input]

3
src/notehub/storage.clj

@ -36,6 +36,9 @@
(redis :hset :publisher-key pid psk) (redis :hset :publisher-key pid psk)
psk))) psk)))
#_ (when-not (valid-publisher? "NoteHub")
(register-publisher "NoteHub"))
(defn revoke-publisher [pid] (defn revoke-publisher [pid]
(redis :hdel :publisher-key pid)) (redis :hdel :publisher-key pid))

Loading…
Cancel
Save