summaryrefslogtreecommitdiff
path: root/src/site.clj
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2010-06-25 02:21:09 -0400
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2010-06-25 02:21:09 -0400
commitf37c7b937f4a9a0b1ea527f620dbd81b57fd264f (patch)
tree2f67880da8afe689f82333a8c80428c1ce425c7b /src/site.clj
parent6ab42d3e4480301ed52e7d56dc96c63229016e5c (diff)
parent160ceb3b6881ae1e66b6db99cebc6d75a5d96c32 (diff)
Merge branch 'master' of /pichat/repo
Diffstat (limited to 'src/site.clj')
-rw-r--r--src/site.clj10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/site.clj b/src/site.clj
index 45331c7..91f982e 100644
--- a/src/site.clj
+++ b/src/site.clj
@@ -17,7 +17,7 @@
admin
compojure
email
- fame
+ fame
utils
cookie-login
session-sweeper
@@ -145,7 +145,7 @@
(first (do-select [query (maybe-parse-int m-id -1)]))))
(defn fetch-public-message-by-id [m-id]
- (let [msg (fetch-message-by-id m-id)]
+ (let [msg (tags/fetch-dump-by-id m-id)]
(if (and msg (not (:admin_only msg)))
msg)))
@@ -570,8 +570,10 @@ FROM users u
; error if nick in url doesn't match the nick who posted the message from the id in url
; this prevents people from scraping all the content by incrementing the id in the url
(if (= (user-info :user_id) (message :user_id))
- (let [st (fetch-template "single_message" session)]
- (.setAttribute st "message" (process-message-for-output message))
+ (let [st (fetch-template "single_message" session)
+ message (tags/add-favorited-flag message session)
+ message (tags/remove-tags-for-output message)]
+ (.setAttribute st "dump" (process-message-for-output message))
(.toString st))
(resp-error "NO_MESSAGE"))
(resp-error "NO_MESSAGE"))