From 116fc016d077b68511f5cdabd86b6a2eebeec645 Mon Sep 17 00:00:00 2001 From: hydrox Date: Mon, 26 Feb 2007 16:18:43 +0000 Subject: [PATCH] *) fix for Blogcomment-Preview git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3408 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/BlogComments.java | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/htroot/BlogComments.java b/htroot/BlogComments.java index 6cf8ef12e..7c8d84ff2 100644 --- a/htroot/BlogComments.java +++ b/htroot/BlogComments.java @@ -165,20 +165,17 @@ public class BlogComments { if(post.containsKey("preview")) { //preview the page - if(hasRights) { - prop.put("mode", 1);//preview - prop.put("mode_pageid", pagename); - try { - prop.put("mode_author", new String(author, "UTF-8")); - } catch (UnsupportedEncodingException e) { - prop.put("mode_author", new String(author)); - } - prop.put("mode_subject", post.get("subject","")); - prop.put("mode_date", dateString(new Date())); - prop.putWiki("mode_page", post.get("content", "")); - prop.put("mode_page-code", post.get("content", "")); - } - else prop.put("mode",3); //access denied (no rights) + prop.put("mode", 1);//preview + prop.put("mode_pageid", pagename); + try { + prop.put("mode_author", new String(author, "UTF-8")); + } catch (UnsupportedEncodingException e) { + prop.put("mode_author", new String(author)); + } + prop.put("mode_subject", post.get("subject","")); + prop.put("mode_date", dateString(new Date())); + prop.putWiki("mode_page", post.get("content", "")); + prop.put("mode_page-code", post.get("content", "")); } else { // show blog-entry/entries