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