aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/NewMessage.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2012-12-26 14:30:03 +0700
committerGravatar Ugnich Anton2012-12-26 14:30:03 +0700
commit9adb555fe41f6322310be1fea406d9d8d44acafe (patch)
treebcc81e6bebdb607ec5f0651379adf78e97214f16 /src/java/com/juick/http/www/NewMessage.java
parentf4bbf04c16efada11d1d371f0b6abc2f30780bc7 (diff)
New tags URLs
Diffstat (limited to 'src/java/com/juick/http/www/NewMessage.java')
-rw-r--r--src/java/com/juick/http/www/NewMessage.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/com/juick/http/www/NewMessage.java b/src/java/com/juick/http/www/NewMessage.java
index 40ffeb46..9ca7e7ed 100644
--- a/src/java/com/juick/http/www/NewMessage.java
+++ b/src/java/com/juick/http/www/NewMessage.java
@@ -72,7 +72,7 @@ public class NewMessage {
out.println("</form>");
out.println("<div id=\"geomap\"></div>");
out.println("<p style=\"text-align: left\"><b>" + rbnm.getString("Tags") + ":</b></p>");
- printUserTags(sql, out, visitor.UID);
+ printUserTags(sql, out, visitor);
out.println("</div>");
out.println("</div>");
@@ -82,8 +82,8 @@ public class NewMessage {
}
}
- void printUserTags(Connection sql, PrintWriter out, int uid) {
- ArrayList<Tag> tags = TagQueries.getUserTagsAll(sql, uid);
+ void printUserTags(Connection sql, PrintWriter out, com.juick.User visitor) {
+ ArrayList<Tag> tags = TagQueries.getUserTagsAll(sql, visitor.UID);
if (tags.isEmpty()) {
return;
@@ -109,7 +109,7 @@ public class NewMessage {
}
String taglink = "";
try {
- taglink = "<a onclick=\"return addTag('" + Utils.encodeHTML(tags.get(i).Name) + "')\" href=\"/?tag=" + URLEncoder.encode(tags.get(i).Name, "utf-8") + "\" title=\"" + tags.get(i).UsageCnt + "\">" + Utils.encodeHTML(tags.get(i).Name) + "</a>";
+ taglink = "<a onclick=\"return addTag('" + Utils.encodeHTML(tags.get(i).Name) + "')\" href=\"/" + visitor.UName + "/?tag=" + URLEncoder.encode(tags.get(i).Name, "utf-8") + "\" title=\"" + tags.get(i).UsageCnt + "\">" + Utils.encodeHTML(tags.get(i).Name) + "</a>";
} catch (UnsupportedEncodingException e) {
}
int usagecnt = tags.get(i).UsageCnt;