From 6a0015db5563dc5fe7a54672581b8d59f0fd23e7 Mon Sep 17 00:00:00 2001 From: Scott Ostler Date: Thu, 13 Jan 2011 01:32:10 -0500 Subject: Add fallthrough routes for static/post routeset --- src/site.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/site.clj b/src/site.clj index 5b20361..c63a6cb 100644 --- a/src/site.clj +++ b/src/site.clj @@ -1186,7 +1186,8 @@ WHERE user_id IN (GET "/irlhell" (redirect-to "/irhell/")) (GET "/irhell" (redirect-to "/irhell/")) (GET "/irhell/" (serve-static "static/319" "irhell.html")) - (GET "/irhell/*" (serve-static "static/319" (params :*)))) + (GET "/irhell/*" (serve-static "static/319" (params :*))) + (ANY "*" (unknown-page))) @@ -1331,7 +1332,8 @@ WHERE user_id IN (defroutes multipart (POST "/upload/message" (upload session params request)) (POST "/upload/photo" (upload-photo session params)) - (POST "/upload/avatar" (upload-avatar session params))) + (POST "/upload/avatar" (upload-avatar session params)) + (ANY "*" (unknown-page))) ;; Add jpeg to list (def mimetypes -- cgit v1.2.3-70-g09d2 From 36e641a0c8cef731e51aee124036d3eb2f0c7d96 Mon Sep 17 00:00:00 2001 From: Scott Ostler Date: Thu, 13 Jan 2011 02:42:16 -0500 Subject: Add years to mute list --- src/utils.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/utils.clj b/src/utils.clj index 760ae63..0a9f2dc 100755 --- a/src/utils.clj +++ b/src/utils.clj @@ -146,8 +146,8 @@ (defn today [] (format-yyyymmdd (new Date))) -(def timestamp-formatter (new SimpleDateFormat "h:mm a EEE M/d")) -(def date-first-timestamp-formatter (new SimpleDateFormat "M/d h:mm a")) +(def timestamp-formatter (new SimpleDateFormat "hh:mm a EEE M/d")) +(def date-first-timestamp-formatter (new SimpleDateFormat "YY/MM/dd HH:mm")) (defn format-timestamp [d] (.format timestamp-formatter d)) -- cgit v1.2.3-70-g09d2 From 3a0c47ed55e96a79c5a40aeef628ec3f03d59ac8 Mon Sep 17 00:00:00 2001 From: Scott Ostler Date: Thu, 13 Jan 2011 02:43:03 -0500 Subject: Fixed years to mute list --- src/utils.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils.clj b/src/utils.clj index 0a9f2dc..ee64789 100755 --- a/src/utils.clj +++ b/src/utils.clj @@ -147,7 +147,7 @@ (format-yyyymmdd (new Date))) (def timestamp-formatter (new SimpleDateFormat "hh:mm a EEE M/d")) -(def date-first-timestamp-formatter (new SimpleDateFormat "YY/MM/dd HH:mm")) +(def date-first-timestamp-formatter (new SimpleDateFormat "yy/MM/dd HH:mm")) (defn format-timestamp [d] (.format timestamp-formatter d)) -- cgit v1.2.3-70-g09d2