Permalink
Browse files

Revert "use m29 url shortener"

This reverts commit f55da77.

Conflicts:
	project.clj
  • Loading branch information...
1 parent f0e7d5b commit 1b96df0d7ced756d05f6f04a21921757130f5cdb @hiredman committed Aug 14, 2013
Showing with 2 additions and 5 deletions.
  1. +1 −2 project.clj
  2. +1 −3 src/hiredman/utilities.clj
View
@@ -17,8 +17,7 @@
;; logging
[ch.qos.logback/logback-classic "1.0.9"]
[ch.qos.logback/logback-core "1.0.9"]
- [org.slf4j/jcl-over-slf4j "1.7.2"]
- [com.thelastcitadel/m29 "0.1.0"]]
+ [org.slf4j/jcl-over-slf4j "1.7.2"]]
:main clojurebot.launch
:clean-non-project-classes false
:min-lein-version "2.0.0")
@@ -1,6 +1,5 @@
(ns hiredman.utilities
(:use (hiredman horizon))
- (:require [com.thelastcitadel.m29])
(:import (java.net URL URLEncoder)
(java.io BufferedReader InputStreamReader OutputStreamWriter)
(java.text SimpleDateFormat ParsePosition)
@@ -31,8 +30,7 @@
(.. Runtime getRuntime (exec cmd)))
(defn tinyurl [url]
- (com.thelastcitadel.m29/shorten url)
- #_(-> "http://is.gd/api.php?longurl=%s" (format (URLEncoder/encode url))
+ (-> "http://is.gd/api.php?longurl=%s" (format (URLEncoder/encode url))
get-url))
(def tinyurl (memoize tinyurl))

0 comments on commit 1b96df0

Please sign in to comment.